---
title: "init(_:content:)"
framework: swiftui
role: symbol
role_heading: Initializer
path: "swiftui/scrollview/init(_:content:)"
---

# init(_:content:)

Creates a new instance that’s scrollable in the direction of the given axis and can show indicators while scrolling.

## Declaration

```swift
nonisolated init(_ axes: Axis.Set = .vertical, @ContentBuilder content: () -> Content)
```

## Parameters

- `axes`: The scroll view’s scrollable axis. The default axis is the vertical axis.
- `content`: The content builder that creates the scrollable view.

## See Also

### Creating a scroll view

- [init(_:showsIndicators:content:)](swiftui/scrollview/init(_:showsindicators:content:).md)
