---
title: "init(for:)"
framework: uikit
role: symbol
role_heading: Initializer
path: "uikit/uigraphicsimagerendererformat/init(for:)"
---

# init(for:)

Creates the most suitable format for rendering on a device with the specified traits.

## Declaration

```swift
convenience init(for traitCollection: UITraitCollection)
```

## Parameters

- `traitCollection`: The traits of the drawing environment.

## Return Value

Return Value An initialized format object.
