SpringLoadingBehavior

The options for controlling the spring loading behavior of views.

StructureiOS 17.0+macOS 14.0+tvOS 17.0+watchOS 10.0+SpringLoadingBehavior in SwiftUI

Declaration

React
type SpringLoadingBehavior = 'automatic' | 'disabled' | 'enabled';
Swift
struct SpringLoadingBehavior

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

Type properties

Overview

Use values of this type with the View.springLoadingBehavior(_:) modifier.

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

Used by

See also

More in Animation.