One Logo Pool Ball
SwiftUI · IOS API REFERENCE

ButtonRepeatBehavior

struct · iOS 17.0+ · SDK 27.1

struct ButtonRepeatBehavior

The options for controlling the repeatability of button actions. Use values of this type with the ``View/buttonRepeatBehavior(_:)`` modifier.

Members (3)

get · iOS 17.0+

enabled

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

Repeating button actions will be enabled.

get · iOS 17.0+

disabled

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

Repeating button actions will be disabled.

get · iOS 17.0+

automatic

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

The automatic repeat behavior.

Skipped declarations

No declarations were skipped in this snapshot.

All SwiftUI types →