SVGPath

Concrete implementation that creates a CAShapeLayer from a <path> element and its attributes

  • Attributes that are applied after the path has been processed

    Declaration

    Swift

    internal var delayedAttributes: [String : String]
  • Flag that sets whether the path should be parsed asynchronously or not

    Declaration

    Swift

    internal var shouldParseAsynchronously: Bool
  • Initializer to to set the svgLayer‘s cgPath. The path string does not have to be a single path for the whole element, but can include multiple subpaths in the d attribute. For instance, the following is a valid path string to pass:

    <path d="M30 20 L25 15 l10 50z M40 60 l80 10 l 35 55z">
    

    Declaration

    Swift

    internal init(singlePathString: String)

    Parameters

    singlePathString

    The d attribute value of a <path> element

  • Function that takes a d path string attribute and sets the svgLayer‘s cgPath

    Declaration

    Swift

    internal func parseD(_ pathString: String)
  • The clip rule for this path to be applied after the path has been parsed

    Declaration

    Swift

    internal func clipRule(_ clipRule: String)