The ways that a scrollable view can bounce when it reaches the end of its
content.
Use the ``View/scrollBounceBehavior(_:axes:)`` view modifier to set a value
of this type for a scrollable view, like a ``ScrollView`` or a ``List``.
The value configures the bounce behavior when people scroll to the end of
the view's content.
You can configure each scrollable axis to use a different bounce mode.
Members (3)
get · iOS 16.4+
basedOnSize
TypeScript
static get basedOnSize(): ScrollBounceBehavior
Swift declaration
static var basedOnSize: ScrollBounceBehavior { get }
The scrollable view bounces when its content is large enough to require
scrolling.
The scrollable view bounces along the specified axis if the size of
the content exceeeds the size of the scrollable view in that axis.
get · iOS 16.4+
always
TypeScript
static get always(): ScrollBounceBehavior
Swift declaration
static var always: ScrollBounceBehavior { get }
The scrollable view always bounces.
The scrollable view always bounces along the specified axis,
regardless of the size of the content.
get · iOS 16.4+
automatic
TypeScript
static get automatic(): ScrollBounceBehavior
Swift declaration
static var automatic: ScrollBounceBehavior { get }
The automatic behavior.
The scrollable view automatically chooses whether content bounces when
people scroll to the end of the view's content. By default, scrollable
views use the ``ScrollBounceBehavior/always`` behavior.