---
title: "init(rawValue:)"
framework: AVFoundation
role: symbol
role_heading: Initializer
platforms: [iOS 11.0+, iPadOS 11.0+, Mac Catalyst 13.1+, macOS 10.15+, visionOS 1.0+]
path: "avfoundation/avassetdownloadedassetevictionpriority/init(rawvalue:)"
---

# init(rawValue:)

Creates an eviction priority with a string.

## Declaration

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

## Parameters

- `rawValue`: The raw string value.
