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

# init(_:showsIndicators: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, showsIndicators: Bool = true, @ContentBuilder content: () -> Content)
```

## Parameters

- `axes`: The scroll view’s scrollable axis. The default axis is the vertical axis.
- `showsIndicators`: A Boolean value that indicates whether the scroll view displays the scrollable component of the content offset, in a way suitable for the platform. The default value for this parameter is true.
- `content`: The content builder that creates the scrollable view.

## See Also

### Creating a scroll view

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