ScrollBounceBehavior
The ways that a scrollable view can bounce when it reaches the end of its content.
Declaration
type ScrollBounceBehavior = 'always' | 'automatic' | 'basedOnSize';struct ScrollBounceBehaviorPass a literal, or build one with SwiftUI.ScrollBounceBehavior from import { SwiftUI } from 'swiftui-react-native'.
Type properties
'always'SwiftUI.ScrollBounceBehavior.alwaysThe scrollable view always bounces.
'automatic'SwiftUI.ScrollBounceBehavior.automaticThe automatic behavior.
'basedOnSize'SwiftUI.ScrollBounceBehavior.basedOnSizeThe scrollable view bounces when its content is large enough to require scrolling.
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.
- AlignmentAn alignment in both axes.
- ContainerBackgroundPlacementThe placement of a container background.
- ContainerValuesReadableKeys of SwiftUI ContainerValues JavaScript can read.
- ContainerValuesWritableKeys of SwiftUI ContainerValues JavaScript can write.
- ControlSizeThe size classes, like regular or small, that you can apply to controls within a view.
- DocumentLaunchGeometryProxyA proxy for access to the frame of the scene and its title view.
- DynamicTypeSizeA Dynamic Type size, which specifies how large scalable content should be.
- EdgeAn enumeration to indicate one edge of a rectangle.
- EdgeInsetsThe inset distances for the sides of a rectangle.
- EdgeInsetsChainEdgeInsets with chained calls: SwiftUI.EdgeInsets.inset(...).
- EdgeSetAn efficient set of edges.
- GeometryProxyA proxy for access to the size and coordinate space (for anchor resolution) of the container view.