Draws a line along the receiver’s path using the specified blend mode and transparency values.
- iOS 3.2+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
The blend mode determines how the stroked path is composited with any existing rendered content.
The amount of transparency to apply to the stroked path. Values can range between
1(opaque). Values outside this range are clamped to
The drawn line is centered on the path with its sides parallel to the path segment. This method applies the current stroke color and drawing properties (plus the specified blend mode and transparency value) 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.