Draws a line along the receiver’s path using the current drawing properties.
- iOS 3.2+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
The drawn line is centered on the path with its sides parallel to the path segment. This method applies the current drawing properties to the rendered path.
This method automatically saves the current graphics state prior to drawing and restores that state when it is done, so you do not have to save the graphics state yourself.