PathDLexer

internal struct PathDLexer : IteratorProtocol, Sequence

A struct that conforms to the Sequence protocol that takes a <path> d string and returns SVGElement instances

  • Generates a PathCommand

    Declaration

    Swift

    typealias Element = PathCommand
  • Initializer for creating a new PathDLexer from a path d string

    Declaration

    Swift

    internal init(pathString: String)
  • Required by Swift’s IteratorProtocol that returns a new PathDLexer

    Declaration

    Swift

    internal func makeIterator() -> PathDLexer
  • Required by Swift’s IteratorProtocol that returns the next PathCommand or nil if it’s at the end of the sequence

    Declaration

    Swift

    internal mutating func next() -> Element?