cgContext
The underlying Core Graphics context.
Declaration
var cgContext: CGContext { get }Discussion
Use this property to gain access to the underlying Core Graphics context when you need more drawing functionality than is offered by UIKit and UIGraphicsRendererContext.
For an example of how and when to use the Core Graphics context in an image renderer, see Using Core Graphics rendering functions in UIGraphicsImageRenderer.