NEVER Confuse @State vs @Binding Again || SwiftUI Property Wrappers

  Рет қаралды 6,855

AppStuff

AppStuff

Күн бұрын

What's the difference between @State vs @Binding property wrappers? When do you use one vs the other? Find out in this video!
🔴 Become a member to access Exclusive Content :
www.stephancodes.com/blank-page
🖥️ ONLINE COURSES & APPS
👉 FREE UBER SwiftUI Course
• 🔴 Let's Build UBER wit...
👉 iOS App Templates:
www.stephancodes.com/shop
👉 FREE Twitter SwiftUI Course
• 🔴 Let's Build Twitter ...
👉 Pro Courses:
www.stephancodes.com/videos
🕐 TIMESTAMPS:
00:00 - Intro
00:26 - State Properties
02:00 - State Property Example
06:23 - Binding Properties
10:15 - Binding Property Example
15:43 - Another Binding Example
18:20 - Outro

Пікірлер: 42
@shubhamshetkar8785
@shubhamshetkar8785 29 күн бұрын
Your teaching style is very easy to understand. This cleared my confusion very quickly. Thank you 🙏
@user-bw1tj3tu3e
@user-bw1tj3tu3e Ай бұрын
The best and hight quality content I ever seen, your channel will be the highly recommended to the beginners. After watching your knowledge sharing you deserve a like and subscribe 👍
@Minhaj_Aries
@Minhaj_Aries Ай бұрын
This has helped me building up my basics.. Keep it up. ❤
@ikshitchaudhari2529
@ikshitchaudhari2529 Жыл бұрын
happy to see you back again !! you are probably the best IOS coach on youtube!
@mohanad0408
@mohanad0408 8 ай бұрын
Best explanation I found so far. What I like the most about your approach is mixing infographics while explaining. Please keep it up!
@911lalala
@911lalala Жыл бұрын
Your lectures have changed my Life! Thank you so much My Hero
@caiohenriquesoares-zl6vg
@caiohenriquesoares-zl6vg Ай бұрын
Finally I got! Thank you for that
@galavarezzzk3610
@galavarezzzk3610 4 ай бұрын
Thanks for the video!
@nickmuir8175
@nickmuir8175 11 ай бұрын
Absolutely killer vid, thanks
@evrimdemir1327
@evrimdemir1327 4 ай бұрын
Great tutorial. Thanks.
@gmostafaali
@gmostafaali Жыл бұрын
Very high quality content, completely understood. Thanks a lot.
@BUdJohnson242
@BUdJohnson242 Жыл бұрын
This is awesome. Thanks for sharing your knowledge. One suggestion for improving the video would be to expand the Xcode interface to fill the screen or increase the font size, as small text can be difficult to read for viewers with visual impairments.
@timothyandrian
@timothyandrian 4 ай бұрын
Nice explanation, Thanks a lot
@mario_luis_dev
@mario_luis_dev 11 ай бұрын
that was quality content man, thanks for the awesome explanations
@lolrie
@lolrie 2 ай бұрын
Thank you so much - this is the best explanation I've found, very easy to understand and love the way you simplify the concept and give concrete examples.
@coffeecodecreatine4158
@coffeecodecreatine4158 Жыл бұрын
Keep making videos man! I have been teaching myself swift, and this video was super helpful.
@marcoalonsoiosdev
@marcoalonsoiosdev Жыл бұрын
Very useful thanks 🙏🏼
@Top_Moorhouse
@Top_Moorhouse 10 ай бұрын
Great video! You made it simple to understand with good examples. Thanks! Now Subscribed...🤩
@jeanchristopherozner
@jeanchristopherozner 3 ай бұрын
Very nice, merci!
@sanjarasanov4991
@sanjarasanov4991 Жыл бұрын
awesome, thanks
@phongho.design
@phongho.design 11 ай бұрын
thanks you so much ❤
@user-a_fellow_traveler
@user-a_fellow_traveler Жыл бұрын
Very useful and simple explanation thanks
@yaserghananwi
@yaserghananwi 9 ай бұрын
thank you nice tutorial
@rahmonali7
@rahmonali7 Жыл бұрын
I got more knowledge from this aswesome video. Thank you so much!
@thejaplong
@thejaplong Жыл бұрын
I love you videos: your teaching method is great .... ...however the stereo music at the start almost gives me a headache i think it would be fine if not stereo... i always listen with a headset do as not to both my hubby Just to let you know...Judy oh, i just read the comment below, larger font would really help me too : ) thanks for your tutorials!
@abudihadi3584
@abudihadi3584 Жыл бұрын
from today and over you are my prof
@lumi6394
@lumi6394 Жыл бұрын
Really nice explanation, thank you
@appstuff5778
@appstuff5778 Жыл бұрын
You are welcome!
@LukePighetti
@LukePighetti Жыл бұрын
17:42 what’s the idiomatic way to handle deeply passed binding vars. For example, putting darkModeEnabled at to top of the view hierarchy and maybe ten constructors down are using it
@nishantkumar2194
@nishantkumar2194 9 ай бұрын
❤ simple
@garywkfung
@garywkfung Жыл бұрын
This is awesome thanks! But can you explain how you would set new values to the binding if it is not a Bool? Say a string. Compiler won’t let me.
@AbdeliOS
@AbdeliOS Жыл бұрын
I like how you explain these concepts, can you make a tutorial about async await?
@appstuff5778
@appstuff5778 Жыл бұрын
I have one! It’s my ‘Network Like A Pro’ video
@oskarrhythm
@oskarrhythm Жыл бұрын
Thanks for the explaining but why when you change the value binding on the dismiss button doesnt change the color to white line 24-25 Text? so the if for that propouse dont know about that change? how can refresh the whole view?
@LukePighetti
@LukePighetti Жыл бұрын
12:55 when you dismiss the drawer by swiping down, how do you show it again declaratively? Do you have to cycle the showDrawer to false and then true?
@JosefGooch
@JosefGooch Жыл бұрын
Can this be implemented on any app, anywhere in terms of a new swiftUI project ?
@appstuff5778
@appstuff5778 Жыл бұрын
Yes!
@nickmuir8175
@nickmuir8175 11 ай бұрын
For anyone else confused about the relationship between the @State property on ContentView and the @Binding property on Detail View, it's worth noting that even though they're bound they are not the same property and can be named independently for e.g struct ContentView: View { @State private var showDetailViewContentView = false ... struct DetailView: View { @Binding var showDetailViewDetailView: Bool ... Then passed in as such .fullScreenCover(isPresented: $showDetailViewContentView, content: { DetailView(showDetailViewDetailView: $showDetailViewContentView) }) Not that you'd ever want to do it this way, but for me realising this helped visualise the handing off of data from one view to another where the property names are the same, something I personally struggle with.
@raychen4458
@raychen4458 Жыл бұрын
Amazing explanation bro, hope you can create more courses on Udemy as well.
@appstuff5778
@appstuff5778 Жыл бұрын
I’m mostly putting courses on my website now. Udemy will be courses with a limited feature set. My site will contain the course with the full feature set. I recommend just buying straight from my site
@chezchezchezchez
@chezchezchezchez 10 ай бұрын
Awesome for me! (noob)
@alexaverin2941
@alexaverin2941 3 ай бұрын
great video, but please stop speaking only to my right ear :( maybe go for mono?
КАРМАНЧИК 2 СЕЗОН 7 СЕРИЯ ФИНАЛ
21:37
Inter Production
Рет қаралды 501 М.
Incredible magic 🤯✨
00:53
America's Got Talent
Рет қаралды 21 МЛН
Can You Draw A PERFECTLY Dotted Line?
00:55
Stokes Twins
Рет қаралды 94 МЛН
100+ Linux Things you Need to Know
12:23
Fireship
Рет қаралды 87 М.
Dropdown swift library for iOS apps.
0:24
Manoj Shrestha
Рет қаралды 892
This NEW SwiftUI Feature Is AMAZING | Navigation Stacks
20:05
🔴 6 GAME CHANGING Xcode Tips, Tricks & Shortcuts
6:53
AppStuff
Рет қаралды 2,4 М.
I BEAT HANS NIEMANN!!!!!!!!!!!
24:55
GothamChess
Рет қаралды 594 М.
Video Feed With SwiftUI + Firebase | Async/Await
37:38
AppStuff
Рет қаралды 5 М.
SwiftUI - @Binding Property Wrapper Explained - Passing Data
6:22
Опыт использования Мини ПК от TECNO
1:00
Андронет
Рет қаралды 221 М.
Самый дорогой кабель Apple
0:37
Romancev768
Рет қаралды 83 М.