Contents

context

Returns the graphics context associated with a layer object.

Declaration

var context: CGContext? { get }

Discussion

The context that’s returned is the context for the layer itself, not the context that you specified when you created the layer.

See Also

Examining a Layer