---
title: "init(_:)"
framework: appkit
role: symbol
role_heading: Initializer
path: "appkit/nsdraggingitem/imagecomponentkey/init(_:)"
---

# init(_:)

Creates an image component key using the string you provide.

## Declaration

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

## Parameters

- `rawValue`: A string that represents a dragging image component key.

## See Also

### Initializing a component key

- [init(rawValue:)](appkit/nsdraggingitem/imagecomponentkey/init(rawvalue:).md)
