Fills the area enclosed by the specified path.
SDKs
- iOS 7.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.2+
Framework
- Map
Kit
Declaration
Parameters
path
The path to fill.
context
The graphics context in which to draw the path.
Discussion
You must set the current fill color before calling this method. Typically you do this by calling the apply
method prior to drawing. If the fill
property is currently nil
, this method does nothing.