One Logo Pool Ball
SwiftUI · IOS API REFERENCE

SpringLoadingBehavior

struct · iOS 17.0+ · SDK 27.1

struct SpringLoadingBehavior

The options for controlling the spring loading behavior of views. Use values of this type with the ``View/springLoadingBehavior(_:)`` modifier.

Members (3)

get · iOS 17.0+

enabled

TypeScript
static get enabled(): SpringLoadingBehavior
Swift declaration
static let enabled: SpringLoadingBehavior

Spring loaded interactions will be enabled for applicable views.

get · iOS 17.0+

disabled

TypeScript
static get disabled(): SpringLoadingBehavior
Swift declaration
static let disabled: SpringLoadingBehavior

Spring loaded interactions will be disabled for applicable views.

get · iOS 17.0+

automatic

TypeScript
static get automatic(): SpringLoadingBehavior
Swift declaration
static let automatic: SpringLoadingBehavior

The automatic spring loading behavior. This defers to default component behavior for spring loading. Some components, such as `TabView`, will default to allowing spring loading; while others do not.

Skipped declarations

No declarations were skipped in this snapshot.

All SwiftUI types →