---
title: "setContentOffset(_:animated:)"
framework: messages
role: symbol
role_heading: Instance Method
path: "messages/msstickerbrowserview/setcontentoffset(_:animated:)"
---

# setContentOffset(_:animated:)

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

## Declaration

```swift
func setContentOffset(_ contentOffset: CGPoint, animated: Bool)
```

## Parameters

- `contentOffset`: The distance that the content is offset from the browser’s origin.
- `animated`: A Boolean value that determines whether the change is animated. If doc://com.apple.documentation/documentation/Swift/true, the change is animated at a constant velocity. If doc://com.apple.documentation/documentation/Swift/false, the change takes place immediately.

## Discussion

Discussion Increasing the offset’s x value shifts the content to the left. Increasing the offset’s y value shifts the content upward.

## See Also

### Managing the Browser’s Appearance

- [contentInset](messages/msstickerbrowserview/contentinset.md)
- [contentOffset](messages/msstickerbrowserview/contentoffset.md)
- [stickerSize](messages/msstickerbrowserview/stickersize.md)
