SVG

public struct SVG

Undocumented

  • Composite structure of SVG.Group values containing StyledPath values.

    Declaration

    Swift

    public typealias Structure = Tree<Group, StyledPath>
  • View rectangle.

    Declaration

    Swift

    public let viewBox: Rectangle
  • Composite structure composed of RenderedPath values.

    Declaration

    Swift

    public let structure: Structure

Initializers

  • Creates an SVG model with the given viewBox and structure.

    Declaration

    Swift

    public init(viewBox: Rectangle, structure: Structure)
  • Creates an SVG model for a file at the given url.

    Declaration

    Swift

    public init(url: URL) throws
  • Creates an SVG model for a file with the given name in the resources bundle.

    Declaration

    Swift

    public init(name: String) throws
  • Undocumented

    See more

    Declaration

    Swift

    public struct Group