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
Смотрите видео Tap Gestures in SwiftUI онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Swift and Tips 29 Январь 2022, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 1,552 раз и оно понравилось 34 людям.