A set of drawing attributes that represent the configuration of a graphics renderer context.
SDKs
- iOS 10.0+
- Mac Catalyst 13.0+
- tvOS 10.0+
Framework
- UIKit
Declaration
class UIGraphicsRendererFormat : NSObject
Overview
Create a UIGraphics
object, or one of its subclasses (UIGraphics
and UIGraphics
), and use it to construct a graphics renderer by providing the format object as a parameter in a UIGraphics
subclass intializer.
The graphics renderer uses the format object you provided to configure any context objects (UIGraphics
) it creates as part of the rendering process.
If you use a graphics renderer initializer that does not require a format argument, the renderer creates a format object using the default()
class method.
The renderer format object contains properties that represent the immutable aspects of the renderer's configuration. This means that repeated uses of a single graphics renderer object will always use the same format object.