---
title: sticker
framework: messages
role: symbol
role_heading: Instance Property
path: messages/msstickerview/sticker
---

# sticker

The displayed sticker object.

## Declaration

```swift
var sticker: MSSticker? { get set }
```

## Discussion

Discussion Set this property to nil to remove the current sticker. If you are using Auto Layout, setting the sticker property changes the view’s intrinsic content size. A view with a nil-valued sticker property does not have an intrinsic content size (the intrinsic content size is set to {UIViewNoIntrinsicMetric, UIViewNoIntrinsicMetric}). Otherwise, the view’s intrinsic content size is set equal to the size of the sticker’s image file (in points). If you are not using Auto Layout, setting the sticker property does not change the view’s size. Call sizeToFit() to adjust the size of the view to match the sticker.

## See Also

### Working with Sticker Views

- [init(frame:sticker:)](messages/msstickerview/init(frame:sticker:).md)
