Components
ScrollBounceBehavior
ScrollBounceBehavior adapts SwiftUI's scrollBounceBehavior modifier into an explicit wrapper.
Example
Requires React 18.2+ or 19 and shared styles. See setup.
Automatic
Loading preview…
Code
'use client';
import { Text } from '@swiftuijs/ui';
import { ScrollBounceBehavior } from '@swiftuijs/ui';
export default function Example() {
return ((<ScrollBounceBehavior>
<Text>Use adaptive bounce behavior</Text>
</ScrollBounceBehavior>));
}Status: adapted
More examples
Behaviors
API reference
| Prop | Type | Required | Description |
|---|---|---|---|
behavior | 'automatic' | 'always' | 'basedOnSize' | No | — |
axes | 'vertical' | 'horizontal' | 'all' | No | — |
Inherits additional props from IBaseComponent.