SwiftUI Tutorial: What's the difference between @State, @ObjectBinding, and @EnvironmentObject?

preview_player
Показать описание
If you want to understand how SwiftUI works with state, start here – this video walks you through how state works, why it matters, and how each of SwiftUI's state options work, all using hands-on code examples so you can see for yourself.

Рекомендации по теме
Комментарии
Автор

Questions? Comments? Tweet me @twostraws.

twostraws
Автор

IMPORTANT: ObjectBinding/BindableObject are deprecated now! @ObjectBinding is become @ObservedObject and BindableObject protocol is become ObservableObject as well as willChange become objectWillChange.

simonbachmann
Автор

If you are learning SwiftUI, you literally to watch this video! This scratched so many cognitive "itches" I had about Swift, it's almost scary. Thank you, thank you, thank you!

abcd
Автор

Saying that this video is "HELPFUL" would be an understatement. However, I have no bigger words. LOL! In short, THANK YOU DUDE! The way you make things clear, is just something else.👌👌👌👌👌

frimpongopokuagyemang
Автор

I have saved 1 hour while watching you 20 minutes concrete and robust explanatory video. Thank you Paul.

kevin-u
Автор

Been messing around with all three for a few days now, getting things to 'work'! This video really hit the nail on the head and now I truly understand the why. Thanks Paul, you're a legend :)

JVancity
Автор

Wow! Best SwiftUI video in the whole YouTube! Thank you!

nexplusedinburgh
Автор

This is an absolutely fantastic explanation for someone like me who doesn't know enough yet to distinguish the significant bits of what the docs are saying. Thank you so much! :D

uberunix
Автор

I think this is the best tutorial video you’ve ever made.

ZoeSummersA
Автор

Every time I watch your videos it gives me a deeper understanding of the topic explained. Thank you so much!

dhavalnena
Автор

Absolutely great stuff. You're making my Swift-learning experience a lot clearer.

I'm intrigued about "who taught you?" though.

Because I get the feeling you had a good teacher.

(This is where you say you're self-taught too)

koz
Автор

Been stuck on these concepts for days, this video really help improve my understanding!

brandonr.
Автор

I'm used .Net's, old Xaml's and to Qt Qml's (super elegant) property bindings. I was exactly looking for an intro on how SwiftUI does this. You found the perfect level between giving an overview and going into detail. Thanks!

BroadcastYOzZelf
Автор

Please make more! I love the way you talk with passion and interest! Also the way you edit the videos with a final touch! Awesome job!!!

marlhex
Автор

Best no bs intro (experienced programmer here)

ac
Автор

This is the best video about this things I have ever watched. You make simple and more complicated examples and you describe them extremely well. Congrats and thanks!

AndreaCiani
Автор

Oh my goodness. This @EnvironmentObject thing might just save my life. Thank you thank you!

JacksMacintosh
Автор

This is THE best tutorial I've seen so far! And boy I've seen many.

Thanks Paul!

coolisfoolable
Автор

Excellent tutorial, I finally understand these concepts after trying a few other sources. Thanks Paul!

Nicolas-isgq
Автор

Great great tutorial... first division university class... core concepts really well explained and introduced vía telling an incremental story... a must watch... Apple should absolutely use this video and upload it to SwiftUI developer library
💪🏻😀😎

oliverbarreto