---
title: "init(rawValue:)"
framework: phase
role: symbol
role_heading: Initializer
path: "phase/phasespatialpipeline/flags-swift.struct/init(rawvalue:)"
---

# init(rawValue:)

Initializes a spatial flag with the given string.

## Declaration

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

## Parameters

- `rawValue`: The enumeration case’s underlying string value.
