CoordinateLexer
internal struct CoordinateLexer : IteratorProtocol, Sequence
A struct that conforms to the Sequence
protocol that takes a coordinate string and continuously returnsCGPoint
s
-
Generates a
CGPoint
Declaration
Swift
typealias Element = CGPoint
-
Creates a new
CoordinateLexer
from a comma or space separated number stringDeclaration
Swift
internal init(coordinateString: String)
-
Required by Swift’s
IteratorProtocol
that returns a newCoordinateLexer
Declaration
Swift
internal func makeIterator() -> CoordinateLexer
-
Required by Swift’s
IteratorProtocol
that returns the nextCGPoint
or nil if it’s at the end of the sequenceDeclaration
Swift
internal mutating func next() -> Element?