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

# init(rawValue:)

Creates a restriction with an integer.

## Declaration

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

## Parameters

- `rawValue`: The raw integer value.
