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 stringDeclaration
Swift
internal init(pathString: String)
-
Required by Swift’s
IteratorProtocol
that returns a newPathDLexer
Declaration
Swift
internal func makeIterator() -> PathDLexer
-
Required by Swift’s
IteratorProtocol
that returns the nextPathCommand
or nil if it’s at the end of the sequenceDeclaration
Swift
internal mutating func next() -> Element?