---
title: UIGraphicsRendererFormat
framework: uikit
role: symbol
role_heading: Class
path: uikit/uigraphicsrendererformat
---

# UIGraphicsRendererFormat

A set of drawing attributes that represents the configuration of a graphics renderer context.

## Declaration

```swift
class UIGraphicsRendererFormat
```

## Overview

Overview Create a UIGraphicsRendererFormat object, or one of its subclasses (UIGraphicsImageRendererFormat and UIGraphicsPDFRendererFormat), and use it to construct a graphics renderer by providing the format object as a parameter in a UIGraphicsRenderer subclass intializer. The graphics renderer uses the format object you provided to configure any context objects (UIGraphicsRendererContext) it creates as part of the rendering process. If you use a graphics renderer initializer that doesn’t 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.

## Topics

### Creating a format

- [default()](uikit/uigraphicsrendererformat/default().md)
- [preferred()](uikit/uigraphicsrendererformat/preferred().md)

### Getting the bounds

- [bounds](uikit/uigraphicsrendererformat/bounds.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Inherited By

- [UIGraphicsImageRendererFormat](uikit/uigraphicsimagerendererformat.md)
- [UIGraphicsPDFRendererFormat](uikit/uigraphicspdfrendererformat.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Graphics contexts

- [UIGraphicsRenderer](uikit/uigraphicsrenderer.md)
- [UIGraphicsRendererContext](uikit/uigraphicsrenderercontext.md)
- [UIGraphicsImageRenderer](uikit/uigraphicsimagerenderer.md)
- [UIGraphicsImageRendererContext](uikit/uigraphicsimagerenderercontext.md)
- [UIGraphicsImageRendererFormat](uikit/uigraphicsimagerendererformat.md)
- [UIGraphicsPDFRenderer](uikit/uigraphicspdfrenderer.md)
- [UIGraphicsPDFRendererContext](uikit/uigraphicspdfrenderercontext.md)
- [UIGraphicsPDFRendererFormat](uikit/uigraphicspdfrendererformat.md)
