iOS 15: How to use gestures in SwiftUI - Flashzilla SwiftUI Tutorial 1/15

  Рет қаралды 5,386

Paul Hudson

Paul Hudson

2 жыл бұрын

Download the completed project here: github.com/twostraws/hackingw...
Other parts in Project 17:
Introduction: www.hackingwithswift.com/book...
1. How to use gestures in SwiftUI: This video
2. Making vibrations with UINotificationFeedbackGenerator and Core Haptics: • iOS 15: Making vibrati...
3. Disabling user interactivity with allowsHitTesting(): • iOS 15: Disabling user...
4. Triggering events repeatedly using a timer: • iOS 15: Triggering eve...
5. How to be notified when your SwiftUI app moves to the background: • iOS 15: How to be noti...
6. Supporting specific accessibility needs with SwiftUI: • iOS 15: Supporting spe...
7. Designing a single card view: • iOS 15: Designing a si...
8. Building a stack of cards: • iOS 15: Building a sta...
9. Moving views with DragGesture and offset(): • iOS 15: Moving views w...
10. Coloring views as we swipe: • iOS 15: Coloring views...
11. Counting down with a Timer: • iOS 15: Counting down ...
12. Ending the app with allowsHitTesting(): • iOS 15: Ending the app...
13. Making iPhones vibrate with UINotificationFeedbackGenerator: • iOS 15: Making iPhones...
14. Fixing the bugs: • iOS 15: Fixing the bug...
15. Adding and deleting cards: • iOS 15: Adding and del...
Wrap up and challenges: www.hackingwithswift.com/book...
You can find the full set of videos, along with transcriptions, challenges, tests, and more, in my free 100 Days of SwiftUI course: www.hackingwithswift.com/100/...
Watch the full 100 Days of SwiftUI playlist here: • Hacking with iOS: Swif...

Пікірлер: 10
@cyrfung
@cyrfung 2 жыл бұрын
I've said it before but when I needed to learn how to use something if I can find a Hacking with Swift article I know I can expect a high quality tutorial. Really great for leaning something quickly and get back to work. WWDC videos are nice and all but they are often hour-long and not as easy to watch when you needed to look up how to use something quickly at work.
@burakdumer1612
@burakdumer1612 2 жыл бұрын
Great tutorial! Thanks! As an addition I find that using currentAmount = finalAmount * (amount - 1) for the .onChanged closure makes it a little bit easier to scale up and down when final amount gets larger and larger.
@developerfriendly
@developerfriendly 2 жыл бұрын
thanks x 10
@enzmondo
@enzmondo Жыл бұрын
It’s a good thing Apple already taught users how Haptic Touch works utilising both visual and tactile feedback to communicate long press and drag gestures combined.
@JeffreyConcerto
@JeffreyConcerto 2 жыл бұрын
Great content here
@CraigSchubert
@CraigSchubert 2 жыл бұрын
Awesome stuff! 🙂 I'm curious if you'll cover multi-finger swipes in this at all...
2 жыл бұрын
It's nice for easter egg 🥚
@Sfstboy
@Sfstboy Жыл бұрын
Great video! I was wondering if it is possible to enable DragGesture only when MagnificationGesture is used WITHOUT releasing fingers. Apps like Hinge or Bumble has the feature. I used calld simultaneously(with:) to combine DragGesture and MagnificationGesture, and I was able to drag -> zoom, but zoom -> drag doesn't work.
@raymundoortiz7269
@raymundoortiz7269 2 жыл бұрын
What could be the GESTURE when the button is released??
@xavierrouet3654
@xavierrouet3654 Жыл бұрын
I think you made a mistake with the scale gesture : you should multiply by amount not doing amount - 1. Scales are multiplication .
НЫСАНА КОНЦЕРТ 2024
2:26:34
Нысана театры
Рет қаралды 938 М.
Little girl's dream of a giant teddy bear is about to come true #shorts
00:32
Самый Молодой Актёр Без Оскара 😂
00:13
Глеб Рандалайнен
Рет қаралды 12 МЛН
Nastya and SeanDoesMagic
00:16
Nastya
Рет қаралды 32 МЛН
Drag Gestures in SwiftUI
9:06
Swift and Tips
Рет қаралды 5 М.
Sequenced and Exclusive Gestures
18:19
Stewart Lynch
Рет қаралды 812
8 Common SwiftUI Mistakes - and how to fix them!
28:05
Paul Hudson
Рет қаралды 49 М.
The Last SwiftData Tutorial You Will Ever Need
1:09:25
Rebeloper - Rebel Developer
Рет қаралды 5 М.
How to use LongPressGesture in SwiftUI | Continued Learning #1
16:19
Swiftful Thinking
Рет қаралды 17 М.
Новые iPhone 16 и 16 Pro Max
0:42
Romancev768
Рет қаралды 2 МЛН
Облачная память в iPhone? #apple #iphone
0:53
Не шарю!
Рет қаралды 164 М.
iPhone 15 Pro Max vs IPhone Xs Max  troll face speed test
0:33
Какой ноутбук взять для учёбы? #msi #rtx4090 #laptop #юмор #игровой #apple #shorts
0:18
low battery 🪫
0:10
dednahype
Рет қаралды 728 М.
$1 vs $100,000 Slow Motion Camera!
0:44
Hafu Go
Рет қаралды 28 МЛН
Что делать если в телефон попала вода?
0:17
Лена Тропоцел
Рет қаралды 2,8 МЛН