<!--
{
  "availability" : [
    "macOS: 15.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSSuggestionItem",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "s:6AppKit16NSSuggestionItemV"
  },
  "title" : "NSSuggestionItem"
}
-->

# NSSuggestionItem

The items that appear in suggestion menus.

```
struct NSSuggestionItem<SuggestionItemType>
```

## Topics

### Initializers

[`init(representedValue: SuggestionItemType, attributedTitle: AttributedString)`](/documentation/AppKit/NSSuggestionItem/init(representedValue:attributedTitle:))

[`init(representedValue: SuggestionItemType, title: String)`](/documentation/AppKit/NSSuggestionItem/init(representedValue:title:))

### Instance Properties

[`var attributedSecondaryTitle: AttributedString?`](/documentation/AppKit/NSSuggestionItem/attributedSecondaryTitle)

An optional second attributed string to display for a suggestion menu item. This value should be localized.
This value is an attributed string representation of `secondaryTitle`.

[`var attributedTitle: AttributedString`](/documentation/AppKit/NSSuggestionItem/attributedTitle)

An attributed string to display for a suggestion menu item. This value should be localized.
This value is an attributed string representation of `title`.

[`var image: NSImage?`](/documentation/AppKit/NSSuggestionItem/image)

An optional image to display before the title. This value should be localized.

[`var representedValue: SuggestionItemType`](/documentation/AppKit/NSSuggestionItem/representedValue)

The value represented by the receiver.

[`var secondaryTitle: String?`](/documentation/AppKit/NSSuggestionItem/secondaryTitle)

An optional second string to display for a suggestion menu item. This value should be localized.
This value is a non-attributed string representation of `attributedSecondaryTitle`.

[`var title: String`](/documentation/AppKit/NSSuggestionItem/title)

A string to display for a suggestion menu item. This value should be localized.
This value is a non-attributed string representation of `attributedTitle`.

[`var toolTip: String?`](/documentation/AppKit/NSSuggestionItem/toolTip)

An optional tool tip to display on hover for a suggestion menu item. This value should be localized.

## Relationships

### Conforms To

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