---
title: "init(rawValue:)"
framework: foundation
role: symbol
role_heading: Initializer
path: "foundation/urlfileprotection/init(rawvalue:)"
---

# init(rawValue:)

Creates a URL file protection type value.

## Declaration

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

## Parameters

- `rawValue`: The string value representing the file protection type.
