ButtonRepeatBehavior
The options for controlling the repeatability of button actions.
Declaration
type ButtonRepeatBehavior = 'automatic' | 'disabled' | 'enabled';struct ButtonRepeatBehaviorPass a literal, or build one with SwiftUI.ButtonRepeatBehavior from import { SwiftUI } from 'swiftui-react-native'.
Type properties
'automatic'SwiftUI.ButtonRepeatBehavior.automaticThe automatic repeat behavior.
'disabled'SwiftUI.ButtonRepeatBehavior.disabledRepeating button actions will be disabled.
'enabled'SwiftUI.ButtonRepeatBehavior.enabledRepeating button actions will be enabled.
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.
- KeyboardShortcutKeyboard shortcuts describe combinations of keys on a keyboard that the user can press in order to activate a button or toggle.
- KeyboardShortcutLocalizationOptions for how a keyboard shortcut participates in automatic localization.
- PencilPreferredActionAn action that the user prefers to perform after double-tapping their Apple Pencil.
- SensoryFeedbackRepresents a type of haptic and/or audio feedback that can be played.
- SensoryFeedbackFlexibilityThe flexibility to be represented by a type of feedback.
- SensoryFeedbackPressFeedbackFeedback that can be played in response to a press (touch down) on a control.
- SensoryFeedbackReleaseFeedbackFeedback that can be played in response to a release (touch up) of a control.
- SensoryFeedbackWeightThe weight to be represented by a type of feedback.