Instance Property

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.

See Also

Getting the Drawing Context

var format: UIGraphicsRendererFormat

The format used to create the associated graphics renderer.