---
title: "init(rawValue:)"
framework: avfoundation
role: symbol
role_heading: Initializer
path: "avfoundation/avcapturesession/preset/init(rawvalue:)"
---

# init(rawValue:)

Creates a preset with a string value.

## Declaration

```swift
init(rawValue: String)
```

## Parameters

- `rawValue`: A raw string value.
