Appends a straight line to the receiver’s path.
- iOS 3.2+
- tvOS 9.0+
- watchOS 2.0+
The destination point of the line segment, specified in the current coordinate system.
This method creates a straight line segment starting at the current point and ending at the point specified by the
point parameter. After adding the line segment, this method updates the current point to the value in
You must set the path’s current point (using the
move(to:) method or through the previous creation of a line or curve segment) before you call this method. If the path is empty, this method does nothing.