---
title: "init(rawValue:)"
framework: XcodeKit
role: symbol
role_heading: Initializer
platforms: [macOS 10.12+]
path: "xcodekit/xcsourceeditorcommanddefinitionkey/init(rawvalue:)"
---

# init(rawValue:)

Creates the key for a source-editor command by using the string value you specify.

## Declaration

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

## Parameters

- `rawValue`: The raw string value of the key.
