---
title: "init(traitCollection:)"
framework: paperkit
role: symbol
role_heading: Initializer
path: "paperkit/renderingoptions/init(traitcollection:)"
---

# init(traitCollection:)

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

## Declaration

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

## Parameters

- `traitCollection`: The trait collection to use.

## See Also

### Creating rendering options

- [init(darkUserInterfaceStyle:layoutRightToLeft:)](paperkit/renderingoptions/init(darkuserinterfacestyle:layoutrighttoleft:).md)
