The base class for the drawing environments associated with graphics renderers.
SDKs
- iOS 10.0+
- Mac Catalyst 13.0+
- tvOS 10.0+
Framework
- UIKit
Declaration
class UIGraphicsRendererContext : NSObject
Overview
You don't create instances of UIGraphics
yourself. Instead, when you use a concrete subclass of UIGraphics
, you are provided an instance of the appropriate UIGraphics
subclass—either UIGraphics
or UIGraphics
—as an argument to a UIGraphics
drawing actions block.
UIGraphics
objects provide high-level drawing methods in addition to access to the underlying Core Graphics context.