<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Messages",
  "identifier" : "/documentation/Messages/MSStickerBrowserView",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Messages"
    ],
    "preciseIdentifier" : "c:objc(cs)MSStickerBrowserView"
  },
  "title" : "MSStickerBrowserView"
}
-->

# MSStickerBrowserView

A browser view that displays a dynamically generated list of stickers.

```
class MSStickerBrowserView
```

## Overview

Use the [`MSStickerBrowserView`](/documentation/Messages/MSStickerBrowserView) to display a dynamically generated list of stickers. The browser provides drag-and-drop functionality. The user can press and hold a sticker to peel it from the browser, then drag the sticker to any balloon in the transcript. The user can also tap stickers to add them to the Messages app’s input field.

The sticker browser presents the stickers provided by its [`dataSource`](/documentation/Messages/MSStickerBrowserView/dataSource) property. The data source can dynamically change the list of stickers at runtime. You can also customize the size of the stickers inside the browser.

If you create an [`MSStickerBrowserViewController`](/documentation/Messages/MSStickerBrowserViewController) object, it automatically creates and displays a sticker browser view with stickers of the specified size. The controller is automatically set as the browser’s data source. Alternatively, you can instantiate your own sticker browser view, letting you customize the size of both the browser and the stickers; however, you need to provide your own data source.

If you need additional customizations, you must build your own user interface using [`MSStickerView`](/documentation/Messages/MSStickerView) objects.

If you are simply presenting a static list of stickers using the default browser interface, consider building a Sticker Pack Application instead. For more information, see [`Messages`](/documentation/Messages).

## Topics

### Creating Sticker Browser Views

[`init(frame:)`](/documentation/Messages/MSStickerBrowserView/init(frame:))

Creates a new sticker browser containing medium-sized stickers.

[`init(frame:stickerSize:)`](/documentation/Messages/MSStickerBrowserView/init(frame:stickerSize:))

Creates a new sticker browser containing stickers of the specified size.

### Managing the Sticker Collection Contents

[`dataSource`](/documentation/Messages/MSStickerBrowserView/dataSource)

The sticker browser’s data source.

[`MSStickerBrowserViewDataSource`](/documentation/Messages/MSStickerBrowserViewDataSource)

The protocol for dynamically providing stickers to a browser view.

[`reloadData()`](/documentation/Messages/MSStickerBrowserView/reloadData())

Asks the sticker browser to reload its data from the data source.

### Managing the Browser’s Appearance

[`contentInset`](/documentation/Messages/MSStickerBrowserView/contentInset)

The distance that the content is inset from the edge of the browser view.

[`contentOffset`](/documentation/Messages/MSStickerBrowserView/contentOffset)

The distance that the content is offset from the browser’s origin.

[`setContentOffset(_:animated:)`](/documentation/Messages/MSStickerBrowserView/setContentOffset(_:animated:))

Sets the offset distance between the content and the browser’s origin.

[`stickerSize`](/documentation/Messages/MSStickerBrowserView/stickerSize)

The size of the stickers in the browser.

### Constants

[`MSStickerSize`](/documentation/Messages/MSStickerSize)

The size of the stickers in the browser view.



---

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)