---
title: iconProvider
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nspreviewrepresentableactivityitem/iconprovider
---

# iconProvider

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

## Declaration

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

## Discussion

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.

## See Also

### Providing Metadata About the Item

- [title](appkit/nspreviewrepresentableactivityitem/title.md)
- [imageProvider](appkit/nspreviewrepresentableactivityitem/imageprovider.md)
