The visual representation for a path-based overlay.
- iOS 7.0+
- macOS 10.9+
- tvOS 9.2+
Use this renderer when your overlay's shape is defined by a CGPath object. By default, this renderer fills the overlay's shape and represents the strokes of the path using its current attributes.
You can use this class as-is or subclass to define additional drawing behaviors. If you subclass, override the
createPath method and use that method to build the appropriate path object. To change the path, invalidate it and recreate the path using whatever new data your subclass has obtained.
Creating and Managing the Path
The path representing the overlay’s shape.
Accessing the Drawing Attributes
The stroke width to use for the path.
The line join style to apply to corners of the path.
The line cap style to apply to the open ends of the path.
The limiting value that helps avoid spikes at junctions between connected line segments.
The offset (in points) at which to start drawing the dash pattern.
An array of numbers specifying the dash pattern to use for the path.
Drawing the Path
A Boolean that determines if the overlay is rendered as a bitmap before compositing.
This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.Learn more about using Apple's beta software