<!--
{
  "availability" : [
    "macOS: 10.7.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSCollectionViewItem/draggingImageComponents",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSCollectionViewItem(py)draggingImageComponents"
  },
  "title" : "draggingImageComponents"
}
-->

# draggingImageComponents

Dragging images for multi-image drag and drop support.

```
var draggingImageComponents: [NSDraggingImageComponent] { get }
```

## Discussion

The component frames are relative to a coordinate system that has its origin at the bottom left, so you need to take into account the flipped state of your view when computing the component frames.

This methods can be subclassed and overridden to provide a custom set of [`NSDraggingImageComponent`](/documentation/AppKit/NSDraggingImageComponent) objects to create the drag image.

The default implementation will return an array of up to two [`NSDraggingImageComponent`](/documentation/AppKit/NSDraggingImageComponent) instances – one for the [`imageView`](/documentation/AppKit/NSCollectionViewItem/imageView) and another for the [`textField`](/documentation/AppKit/NSCollectionViewItem/textField) (if not `nil`).

---

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)