Contents

UIGraphicsPushContext(_:)

Makes the specified graphics context the current context.

Declaration

func UIGraphicsPushContext(_ context: CGContext)

Parameters

  • context:

    The graphics context to make the current context.

Discussion

You can use this function to save the previous graphics state and make the specified context the current context. You must balance calls to this function with matching calls to the UIGraphicsPopContext() function.

This function may be called from any thread of your app.

See Also

Graphics context primitives