Components
ScrollBounceBehavior
ScrollBounceBehavior adapts SwiftUI's `scrollBounceBehavior` modifier into an explicit wrapper.
ScrollBounceBehavior adapts SwiftUI's `scrollBounceBehavior` modifier into an explicit wrapper.
Examples
Automatic
Preview unavailable for this example in the static docs build.
Show code
<ScrollBounceBehavior>
<Text>Use adaptive bounce behavior</Text>
</ScrollBounceBehavior>Variants
Preview unavailable for this example in the static docs build.
Show code
<VStack spacing={12}>
<ScrollBounceBehavior behavior="always">
<Text>Always bounce vertically</Text>
</ScrollBounceBehavior>
<ScrollBounceBehavior behavior="basedOnSize" axes="all">
<Text>Only bounce when content exceeds bounds</Text>
</ScrollBounceBehavior>
</VStack>API
| Prop | Type | Required | Description |
|---|---|---|---|
behavior | 'automatic' | 'always' | 'basedOnSize' | No | No description yet. |
axes | 'vertical' | 'horizontal' | 'all' | No | No description yet. |
Inherits additional props from IBaseComponent.
Overview
ScrollBounceBehavior adapts SwiftUI's scrollBounceBehavior modifier into an explicit wrapper.
Status: adapted