Hello everyone, in this video, we will learn the different ways to capture tap gesture events in SwiftUI!
Content:
0:00 - Intro
0:15 - Types of Gestures
0:40 - onTapGesture
1:47 - TapGesture
3:07 - Is updating method useful?
3:46 - Why onChanged is not available?
4:44 - Multiple taps
5:40 - Are you still here?
------
Source code showed in the video:
https://gist.github.com/pitt500/f6a96...
------
Resources:
* TapGesture: https://developer.apple.com/documenta...
* GestureState: https://developer.apple.com/documenta...
* onTapGesture: https://developer.apple.com/documenta...)
------
Other videos in the channel:
* Modifiers: • Developing Custom Modifiers in SwiftUI
* Never type vs Void: • Never Type in SwiftUI: Exploring its ...
* Drag Gestures: • Drag Gestures in SwiftUI
* Where clauses: • Generics in Swift: Where Clauses (and...
-----
Don't forget to subscribe to the channel, like it, and follow me on social media:
Twitter:
/ swiftandtips
/ pitt500
Finally, ask me for a video you would like to see next 😄!
Credits:
- Music by Wataboi from https://pixabay.com/
- Video edited with Final Cut Pro
Watch video Tap Gestures in SwiftUI online without registration, duration hours minute second in high quality. This video was added by user Swift and Tips 29 January 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 1,552 once and liked it 34 people.