---
title: "init(rawValue:)"
framework: appkit
role: symbol
role_heading: Initializer
path: "appkit/nstouchbaritem/identifier-swift.struct/init(rawvalue:)"
---

# init(rawValue:)

Creates an item identifier with the specified raw value.

## Declaration

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

## See Also

### Creating a custom identifier

- [init(_:)](appkit/nstouchbaritem/identifier-swift.struct/init(_:).md)
