---
title: contentOffset
framework: swiftui
role: symbol
role_heading: Instance Property
path: swiftui/scrollgeometry/contentoffset
---

# contentOffset

The content offset of the scroll view.

## Declaration

```swift
var contentOffset: CGPoint { get set }
```

## Discussion

Discussion This is the position of the scroll view within its overall content size. This value may extend before zero or beyond the content size when the content insets of the scroll view are non-zero or when rubber banding.
