Creates a Core Graphics context configured according to the supplied format object.
- iOS 10.0+
- Mac Catalyst 13.0+
- tvOS 10.0+
The format object that was either supplied to or created by the graphics renderer at initialization time.
A Core Graphics context configured to represent the attributes in the format object.
Each time the graphics renderer needs to create a new Core Graphics context, it calls this method, providing the format object supplied at initialization time.
You must override this method when you subclass
UIGraphics. Use the provided
UIGraphics to create and configure a
CGContext object that is used by the renderer in the drawing routines.