Returns the graphics context associated with a layer object.
- iOS 2.0+
- macOS 10.4+
- tvOS 9.0+
- watchOS 2.0+
- Core Graphics
The layer whose graphics context you want to obtain.
The graphics context associated with the layer.
The context that’s returned is the context for the layer itself, not the context that you specified when you created the layer.