Hello everyone, Happy 2022 🥳. In this video, we will explore the fundamentals of gestures in SwiftUI focused on DragGesture events.
Content:
0:00 - Intro
0:31 - What is a gesture?
1:17 - Updating event
4:09 - onChanged event
4:56 - onEnded event
6:23 - DragGesture parameters
8:29 - Do you want to learn more?
------
Source code showed in the video:
https://gist.github.com/pitt500/aa8ed...
------
Resources:
DragGesture: https://developer.apple.com/documenta...
GestureState: https://developer.apple.com/documenta...
Transaction: https://developer.apple.com/documenta...
Gesture Interactivity: https://developer.apple.com/documenta...
------
Other videos in the channel:
Is nil a null pointer?: • Optionals in Swift Language: Is nil a...
Why can't you use Int indices in a String?: • Why can't you use an Int index in Swi...
LazyVStack: • Performance between LazyVStack, VStac...
GeometryReader and apple Watch animations: • Building Apple Watch Layout with Geom...
What's new in SwiftUI 3.0: • What's new in SwiftUI 3.0? #WWDC21
Swift Concurrency: • Swift Concurrency
-----
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