Adds a sequence of connected straight-line segments to the path.
- iOS 7.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
- Xcode 7.1+
- Core Graphics
An array of values that specify the start and end points of the line segments to draw. Each point in the array specifies a position in user space. The first point in the array specifies the initial starting point.
An affine transform to apply to the points before adding to the path. Defaults to the identity transform if not specified.
Calling this convenience method is equivalent to calling the
move(to: method with the first value in the
points array, then calling the
add method for each subsequent point until the array is exhausted. After calling this method, the path’s current point is the last point in the array.