<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSDraggingItem/ImageComponentKey",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@T@NSDraggingImageComponentKey"
  },
  "title" : "NSDraggingItem.ImageComponentKey"
}
-->

# NSDraggingItem.ImageComponentKey

Keys that identify components of a dragging image.

```
struct ImageComponentKey
```

## Topics

### Initializing a component key

[`init(String)`](/documentation/AppKit/NSDraggingItem/ImageComponentKey/init(_:))

Creates an image component key using the string you provide.

[`init(rawValue: String)`](/documentation/AppKit/NSDraggingItem/ImageComponentKey/init(rawValue:))

Creates an image component key using the string you provide.

### Image component keys

[`static let icon: NSDraggingItem.ImageComponentKey`](/documentation/AppKit/NSDraggingItem/ImageComponentKey/icon)

A key for a corresponding value that is a dragging item’s image.

[`static let label: NSDraggingItem.ImageComponentKey`](/documentation/AppKit/NSDraggingItem/ImageComponentKey/label)

A key for a corresponding value that represents a textual label for a dragging item, for example, a file name.

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Equatable`](/documentation/Swift/Equatable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Sendable`](/documentation/Swift/Sendable)

[`Hashable`](/documentation/Swift/Hashable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)