---
title: "init(rawValue:)"
framework: avfoundation
role: symbol
role_heading: Initializer
path: "avfoundation/avcapturedevice/primaryconstituentdevicerestrictedswitchingbehaviorconditions-swift.struct/init(rawvalue:)"
---

# init(rawValue:)

Creates a switching behavior condition with an unsigned integer value.

## Declaration

```swift
init(rawValue: UInt)
```

## Parameters

- `rawValue`: The unsigned integer value of the condition.
