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

# init(rawValue:)

Creates a run loop mode using the specified raw string value.

## Declaration

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

## Parameters

- `rawValue`: The string value for the run loop mode.

## See Also

### Run Loop Mode Creation

- [init(_:)](foundation/runloop/mode/init(_:).md)
