ScrollBounceBehavior

The ways that a scrollable view can bounce when it reaches the end of its content.

StructureiOS 16.4+macOS 13.3+tvOS 16.4+watchOS 9.4+ScrollBounceBehavior in SwiftUI

Declaration

React
type ScrollBounceBehavior = 'always' | 'automatic' | 'basedOnSize';
Swift
struct ScrollBounceBehavior

Pass a literal, or build one with SwiftUI.ScrollBounceBehavior from import { SwiftUI } from 'swiftui-react-native'.

Type properties

Overview

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.

From Apple’s SwiftUI documentation. Code samples there are Swift.

Used by

See also

More in Layout.