---
title: contentSize
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uiscrollview/contentsize
---

# contentSize

The size of the content view.

## Declaration

```swift
var contentSize: CGSize { get set }
```

## Mentioned in

Estimating the height of a table’s scrolling area

## Discussion

Discussion The unit of size is points. The default size is CGSizeZero.

## See Also

### Managing the content size and offset

- [contentOffset](uikit/uiscrollview/contentoffset.md)
- [setContentOffset(_:animated:)](uikit/uiscrollview/setcontentoffset(_:animated:).md)
