Building a stack of cards - Flashzilla SwiftUI Tutorial 7/13

  Рет қаралды 428

Paul Hudson

Paul Hudson

3 ай бұрын

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: • How to use gestures in...
2. Disabling user interactivity with allowsHitTesting(): • Disabling user interac...
3. Triggering events repeatedly using a timer: • Triggering events repe...
4. How to be notified when your SwiftUI app moves to the background: • How to be notified whe...
5. Supporting specific accessibility needs with SwiftUI: • Supporting specific ac...
6. Designing a single card view: • Designing a single car...
7. Building a stack of cards: This video
8. Moving views with DragGesture and offset(): • Moving views with Drag...
9. Coloring views as we swipe: • Coloring views as we s...
10. Counting down with a Timer: • Counting down with a T...
11. Ending the app with allowsHitTesting(): • Ending the app with al...
12. Fixing the bugs: • Fixing the bugs - Flas...
13. Adding and deleting cards: • Adding and deleting ca...
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: • Understanding the basi...

Пікірлер: 1
@josephalbanese4859
@josephalbanese4859 Ай бұрын
Hey Paul - I'm curious, for the custom .stacked extension, is there a reason you decided to give cards less offset the closer they are to the end of the index instead of the opposite (e.g. card 0 has 0 offset)? I ask as I was working through understanding the extensions logic and felt it was a little confusing at first glance. (I'm on day 88 and trying to improve with custom modifiers! 😅) I modified it in my own project, so that I just take the position and offset it but 10. Thanks for your help! This class has been incredible. func stacked(at position: Int) -> some View { let offset = Double(position) return self.offset(y: offset * 10) } }
How to clone GitHub repository ?
3:20
How To
Рет қаралды 303 М.
They RUINED Everything! 😢
00:31
Carter Sharer
Рет қаралды 15 МЛН
SwiftUI Tutorial: SwiftUI Stacks (HStack, VStack, ZStack)
5:19
Swift Goose
Рет қаралды 7 М.
Choosing Your Language: Python or Mojo?
14:33
ArjanCodes
Рет қаралды 109 М.
Tech Stack I used to Build neetcode.io
6:02
NeetCodeIO
Рет қаралды 34 М.
Эффект Карбонаро и бумажный телефон
1:01
История одного вокалиста
Рет қаралды 2,7 МЛН
wyłącznik
0:50
Panele Fotowoltaiczne
Рет қаралды 24 МЛН
Main filter..
0:15
CikoYt
Рет қаралды 988 М.
ПК с Авито за 3000р
0:58
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 1,9 МЛН