---
title: contentAlignmentPoint
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uiscrollview/contentalignmentpoint
---

# contentAlignmentPoint

A point where the scroll view anchors content that’s smaller than the scroll view’s frame.

## Declaration

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

## Discussion

Discussion The value for this point is in the unit square, with (0,0) representing the top-left corner of the scroll view’s frame, and (1,1) representing the bottom-right corner. The default value is (0,0). If the scroll view’s content is smaller than the scroll view’s frame, the scroll view anchors the content to the specified point relative to its frame. For example, to center smaller content in the scroll view, set its contentAlignmentPoint to (0.5,0.5).
