---
title: "init(rawValue:)"
framework: backgroundassets
role: symbol
role_heading: Initializer
path: "backgroundassets/badownload/priority-swift.struct/init(rawvalue:)"
---

# init(rawValue:)

Creates a priority using the specified raw value.

## Declaration

```swift
init(rawValue: Int)
```

## Parameters

- `rawValue`: An integer that represents the desired priority. The system considers a high value more important than a low one. Provide a value that’s in the range doc://com.apple.documentation/documentation/Swift/Int/min to doc://com.apple.documentation/documentation/Swift/Int/max.

## See Also

### Creating a priority

- [init(_:)](backgroundassets/badownload/priority-swift.struct/init(_:).md)
