init(_:content:)
Creates a new instance that’s scrollable in the direction of the given axis and can show indicators while scrolling.
Declaration
nonisolated init(_ axes: Axis.Set = .vertical, @ViewBuilder content: () -> Content)Parameters
- axes:
The scroll view’s scrollable axis. The default axis is the vertical axis.
- content:
The view builder that creates the scrollable view.