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

# iconProvider

An object that provides an icon that represents the item’s source.

```
optional var iconProvider: NSItemProvider? { get }
```

## Discussion

Typically, the icon is a thumbnail-sized representation of the source app for the content. For example, provide your app’s icon for content you manage.

---

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)