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

# init(rawValue:)

Creates a Metal device notification name from a string.

## Declaration

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

## Parameters

- `rawValue`: A string of the notification’s name.

## Discussion

Discussion Use this type’s static properties instead of this initializer.

## See Also

### Creating a notification name

- [wasAdded](metal/mtldevicenotificationname/wasadded.md)
- [removalRequested](metal/mtldevicenotificationname/removalrequested.md)
- [wasRemoved](metal/mtldevicenotificationname/wasremoved.md)
