Загрузка...

Tap Gestures in SwiftUI

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/f6a96a70cdf238c4b50171aceafd45b2

------
Resources:
* TapGesture: https://developer.apple.com/documentation/swiftui/tapgesture
* GestureState: https://developer.apple.com/documentation/swiftui/gesturestate
* onTapGesture: https://developer.apple.com/documentation/swiftui/view/ontapgesture(count:perform:)

------
Other videos in the channel:
* Modifiers: https://youtu.be/QJJYDawfugk
* Never type vs Void: https://youtu.be/RHgRq4_gdk8
* Drag Gestures: https://youtu.be/muHDX4ij_EQ
* Where clauses: https://youtu.be/BxpNrBO4ygs
-----
Don't forget to subscribe to the channel, like it, and follow me on social media:

Twitter:
https://twitter.com/swiftandtips
https://twitter.com/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
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять