---
title: "scrollView(axis:)"
framework: swiftui
role: symbol
role_heading: Type Method
path: "swiftui/coordinatespaceprotocol/scrollview(axis:)"
---

# scrollView(axis:)

The named coordinate space that is added by the system for the innermost containing scroll view that allows scrolling along the provided axis.

## Declaration

```swift
static func scrollView(axis: Axis) -> Self
```

## See Also

### Getting built-in coordinate spaces

- [immersiveSpace](swiftui/coordinatespaceprotocol/immersivespace.md)
- [global](swiftui/coordinatespaceprotocol/global.md)
- [local](swiftui/coordinatespaceprotocol/local.md)
- [named(_:)](swiftui/coordinatespaceprotocol/named(_:).md)
- [scrollView](swiftui/coordinatespaceprotocol/scrollview.md)
