Contents

init(_:showsIndicators:content:)

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

Declaration

init(_ axes: Axis.Set = .vertical, showsIndicators: Bool = true, @ViewBuilder 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 view builder that creates the scrollable view.

See Also

Creating a scroll view