---
title: dataSource
framework: messages
role: symbol
role_heading: Instance Property
path: messages/msstickerbrowserview/datasource
---

# dataSource

The sticker browser’s data source.

## Declaration

```swift
weak var dataSource: (any MSStickerBrowserViewDataSource)? { get set }
```

## Discussion

Discussion If you are using an MSStickerBrowserViewController object, the controller automatically sets itself as the data source for the sticker browser view that it provides. If you instantiate and display your own sticker browser view, this property defaults to nil, and you must assign a data source.

## See Also

### Managing the Sticker Collection Contents

- [MSStickerBrowserViewDataSource](messages/msstickerbrowserviewdatasource.md)
- [reloadData()](messages/msstickerbrowserview/reloaddata().md)
