<!--
{
  "availability" : [
    "macOS: 10.11.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSCollectionViewItem/HighlightState-swift.enum",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@E@NSCollectionViewItemHighlightState"
  },
  "title" : "NSCollectionViewItem.HighlightState"
}
-->

# NSCollectionViewItem.HighlightState

Constants indicating the type of highlight applied to an item.

```
enum HighlightState
```

## Topics

### Constants

[`NSCollectionViewItemHighlightNone`](/documentation/AppKit/NSCollectionViewItem/HighlightState-swift.enum/none)

No highlight state.

[`NSCollectionViewItemHighlightForSelection`](/documentation/AppKit/NSCollectionViewItem/HighlightState-swift.enum/forSelection)

The selected highlight state. This type of highlight is applied when an item is selected. During interactive highlighting, this state is also applied to indicate that the item will become highlighted.

[`NSCollectionViewItemHighlightForDeselection`](/documentation/AppKit/NSCollectionViewItem/HighlightState-swift.enum/forDeselection)

The deselection highlight state. During interactive selection, this state is used to indicate that the item will become deselected when interactions end. After interactions end, the highlight state returns to [`NSCollectionViewItem.HighlightState.none`](/documentation/AppKit/NSCollectionViewItem/HighlightState-swift.enum/none).

[`NSCollectionViewItemHighlightAsDropTarget`](/documentation/AppKit/NSCollectionViewItem/HighlightState-swift.enum/asDropTarget)

The drop target highlight state. This type of highlight is applied when the item is the target of a drop operation on the collection view. After the drop operation completes, the highlight state returns to [`NSCollectionViewItem.HighlightState.none`](/documentation/AppKit/NSCollectionViewItem/HighlightState-swift.enum/none).

## Relationships

### Conforms To

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

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

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

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

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

[`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)