Paints the area within the current path, as determined by the specified fill rule.
- iOS 7.0+
- macOS 10.9+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
- Xcode 8.0+
- Core Graphics
If the current path contains any non-closed subpaths, this method treats each subpath as if it had been closed with the
close method, then applies the specified rule to determine which areas to fill.
After filling the path, this method clears the context’s current path.