init(bounds:)
Creates a new graphics renderer with the specified bounds and a default format.
Declaration
convenience init(bounds: CGRect)Parameters
- bounds:
The bounds of the Core Graphics context available to the renderer, with values measured in points.
Return Value
An initialized graphics renderer.
Discussion
Use this initializer to create a graphics renderer that operates on Core Graphics contexts with the specified bounds. This initializer uses the default() static method on UIGraphicsRendererFormat to create the renderer’s format, thereby selecting parameters that are the most appropriate for the current device.