SVGGroup

final class SVGGroup : SVGContainerElement

Concrete implementation that creates a container from a <g> element and applies its attribites to all sublayers

  • Store all attributes and values to be applied after all known sublayers have been added to this container

    Declaration

    Swift

    internal var delayedAttributes: [String : String]
  • A CALayer that will hold all sublayers of the SVGGroup

    Declaration

    Swift

    internal var containerLayer: CALayer
  • The function that is called after all of this group’s subelements have been processed. It will apply all stored delayedAttributes on all sublayers

    Declaration

    Swift

    internal func didProcessElement(in container: SVGContainerElement?)