DelaysApplyingAttributes

public protocol DelaysApplyingAttributes

A protocol that describes an instance that will delay processing attributes, usually until in didProcessElement(in container: SVGContainerElement?) because either all path information isn’t available or when the element needs to apply an attribute to all subelements.

  • The attributes to apply to all sublayers after all subelements have been processed.

    Declaration

    Swift

    var delayedAttributes: [String : String] { get set }

    Parameters

    Key

    The name of an element’s attribute such as d, fill, and rx.

    Value

    The string value of the attribute passed from the parser, such as "#ff00ee"

  • applyDelayedAttributes() Extension method

    Applies any saved and supported attributes

    Declaration

    Swift

    public mutating func applyDelayedAttributes()