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 SVGLayer to the layer of your choosing. Use the UIView extensions if you prefer the easier to use one-liner initializers.

    See more

    Declaration

    Swift

    public extension CALayer
  • Extension that takes a length string, e.g. 100px, 20mm and parses it into a BinaryFloatingPoint (e.g. Float, Double, CGFloat)

    See more

    Declaration

    Swift

    extension BinaryFloatingPoint
  • An extension that add the elements of one dictionary to another

    See more

    Declaration

    Swift

    @frozen
    extension Dictionary
  • Extension that converts a FloatingPoint to and from radians and degrees

    See more

    Declaration

    Swift

    extension FloatingPoint