---
title: paging
framework: swiftui
role: symbol
role_heading: Type Property
path: swiftui/scrolltargetbehavior/paging
---

# paging

The scroll behavior that aligns scroll targets to container-based geometry.

## Declaration

```swift
static var paging: PagingScrollTargetBehavior { get }
```

## Discussion

Discussion In the following example, every view in the lazy stack is flexible in both directions and the scroll view settles to container-aligned boundaries. ScrollView {     LazyVStack(spacing: 0.0) {         ForEach(items) { item in             FullScreenItem(item)         }     } } .scrollTargetBehavior(.paging)

## See Also

### Getting the scroll target behavior

- [viewAligned](swiftui/scrolltargetbehavior/viewaligned.md)
- [viewAligned(limitBehavior:)](swiftui/scrolltargetbehavior/viewaligned(limitbehavior:).md)
