Fills the clipping path of a context with the specified shading.
- iOS 2.0+
- macOS 10.2+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
- Core Graphics
The graphics context in which to draw the shading.
A shading object. The shading object is retained; upon return, you may safely release it.
The preferred way to draw gradients is to use a CGGradient object. See CGGradient.