ButtonRepeatBehavior

The options for controlling the repeatability of button actions.

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

Declaration

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

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

Type properties

Overview

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

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

Used by

See also

More in Input and interaction.