Adds an action to perform when this view recognizes a tap gesture.
SDKs
- iOS 13.0+
- macOS 10.15+
- Mac Catalyst 13.0+
- watchOS 6.0+
- Xcode 11.0+
Framework
- Swift
UI
Adds an action to perform when this view recognizes a tap gesture.
SDKs
Framework
func on Long Press Gesture(minimum Duration: Double, maximum Distance: CGFloat, pressing: ((Bool) -> Void)?, perform: () -> Void) -> View
Adds an action to perform when this view recognizes a long press gesture.
func gesture<T>(T, including: Gesture Mask) -> View
Attaches a gesture to the view with a lower precedence than gestures defined by the view.
func high Priority Gesture<T>(T, including: Gesture Mask) -> View
Attaches a gesture to the view with a higher precedence than gestures defined by the view.
func simultaneous Gesture<T>(T, including: Gesture Mask) -> View
Attaches a gesture to the view to process simultaneously with gestures defined by the view.
func digital Crown Rotation<V>(Binding<V>) -> View
Tracks Digital Crown rotations by updating the specified binding.
func digital Crown Rotation<V>(Binding<V>, from: V, through: V, by: V .Stride?, sensitivity: Digital Crown Rotational Sensitivity, is Continuous: Bool, is Haptic Feedback Enabled: Bool) -> View
Tracks Digital Crown rotations by updating the specified binding.
func transaction((inout Transaction) -> Void) -> View
Applies the given transaction mutation function to all transactions used within the view.