SensoryFeedbackPressFeedback
Feedback that can be played in response to a press (touch down) on a control.
StructureiOS 26.0+macOS 26.0+tvOS 26.0+watchOS 26.0+visionOS 26.0+SensoryFeedback.PressFeedback in SwiftUI
Declaration
type SensoryFeedbackPressFeedback = 'button' | 'buttonIconOnly' | 'slider' | 'tab' | 'toggle';struct PressFeedbackPass a literal, or build one with SwiftUI.SensoryFeedbackPressFeedback from import { SwiftUI } from 'swiftui-react-native'.
Type properties
'slider'SwiftUI.SensoryFeedbackPressFeedback.sliderIndicates that a slider's thumb has been pressed (touch down).
'tab'SwiftUI.SensoryFeedbackPressFeedback.tabIndicates that a control to activate a tab has been pressed (touch down).
'toggle'SwiftUI.SensoryFeedbackPressFeedback.toggleIndicates that a toggle has been pressed (touch down).
See also
More in Input and interaction.
- ButtonRepeatBehaviorThe options for controlling the repeatability of button actions.
- 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.
- 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.