Extensions
The following extensions are available globally.
-
A set of convenience initializers that create new
CALayer
instances from SVG data.If you choose to use these initializers, it is assumed that you would like to exercise a higher level of control. As such, you must provide a completion block and then add the passed
See moreSVGLayer
to the layer of your choosing. Use the UIView extensions if you prefer the easier to use one-liner initializers.Declaration
Swift
public extension CALayer
-
Declaration
Swift
public extension CAShapeLayer
-
Extension that takes a length string, e.g.
See more100px
,20mm
and parses it into aBinaryFloatingPoint
(e.g.Float
,Double
,CGFloat
)Declaration
Swift
extension BinaryFloatingPoint
-
An extension that add the elements of one dictionary to another
See moreDeclaration
Swift
@frozen extension Dictionary
-
Declaration
Swift
extension DispatchQueue
-
Extension that converts a
See moreFloatingPoint
to and from radians and degreesDeclaration
Swift
extension FloatingPoint
-
Declaration
Swift
@frozen extension CGFloat
-
Declaration
Swift
@frozen extension Float
-
Declaration
Swift
@frozen extension Double