The base class for the drawing environments associated with graphics renderers.
- iOS 10.0+
- Mac Catalyst 13.0+
- tvOS 10.0+
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—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.