IMPORTANT: ObjectBinding/BindableObject are deprecated now! @ObjectBinding is become @ObservedObject and BindableObject protocol is become ObservableObject as well as willChange become objectWillChange.
If you are learning SwiftUI, you literally NEEEEED to watch this video! This scratched so many cognitive "itches" I had about Swift, it's almost scary. Thank you, thank you, thank you!
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.👌👌👌👌👌
Much of this video is not appropriate anymore, but the description of what state, binding, etc are is TOTALLY worth watching. I have watched so many videos, but this is the first time I have understood these concepts. Well done Paul!!
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!
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 :)
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!
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
I've watched a few different videos on @State, @ObjectBinding and @EnvironmentObject and it didn't make that much sense. Your explanation was amazing, clear and high descriptive. Great job :)
I’ve been an iOS dev for 1 week :) i think you can pull initial startup data out of core data in the scene delegate. Then pass that data into EnvironmentObjects so it can be accessible to all child view from main. Then each sub view can perform CRUD operations on it with core data. This method may not be great if you’re pulling a lot of data into memory. Perhaps there is a better way? Would love to hear!
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)
Can we refactor all the states out of view structs in a single file for example, and still access and control them from all views? That would be so awesome.
These videos are soooooo good. Your teaching style is amazing and easy to follow, but not slow enough that I'm skipping around for the info. Clear, concise and concentrated. Superb! Also, you explain the WHY. It's so important, but what so many people miss.
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 💪🏻😀😎
For anyone watching in 2022 ❗❗ @ObjectBinding was renamed to *@ObservedObject* BindableObject was renamed to *ObservableObject* and finally, in the new ObservableObject, didChnage was renamed to *objectWillChange*
Great videos, thank you so much. I'd like to suggest you a subject for the next videos, it would be great to see how to work with CoreData and SwiftUI!
Stumbled upon your tutorials and explanations and it’s amazing. I am currently doing QA work and do some dev work too as I’m learning. However, this is preparing me for the future and I really appreciate your videos and explanations. I still want to transition from QA to dev because it’s more interesting but I know I have a while to go.
You make really great videos, and thank you for that. Regarding this one: My projects have no SceneDelegate, so an update would be highly appreciated. Where and how do you set up the global varible in the .app file?
Hi Paul, at ~15:15, you mention making sure to call passthroughsubject on the main thread. I searched all over and can't figure out how exactly to do that. Could you clarify via a code snippet on how to write that function on the main thread? Thanks!
Apple should've just let Paul see SwiftUI a week early and link all of their documentation to hackingwithswift.com. That would've saved a lot of developers a lot of time. What an awesome explanation!
If multiple windows are created, say with a split screen on iPad showing two windows of your same app, will SceneDelgate pass the same reference of userData: User to both ContentView's? 18:45
Watch next: How to fix slow List updates in SwiftUI - ua-cam.com/video/h0SgafWwoh8/v-deo.html
Questions? Comments? Tweet me @twostraws.
IMPORTANT: ObjectBinding/BindableObject are deprecated now! @ObjectBinding is become @ObservedObject and BindableObject protocol is become ObservableObject as well as willChange become objectWillChange.
Simon Bachmann Thank you so much! This indeed saved a lot of trouble...
Was going to ask the same, I started swiftui recently and was confused with seeing ObjectBinding in this video! thanks
I was going to ask when to use ObservableObject and BindableObject, thanks! 😊
Ah that makes sense. Only started learning SwiftUI of late and was confused seeing those. Thanks for clearing up.
thank you 👌
If you are learning SwiftUI, you literally NEEEEED to watch this video! This scratched so many cognitive "itches" I had about Swift, it's almost scary. Thank you, thank you, thank you!
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.👌👌👌👌👌
I have saved 1 hour while watching you 20 minutes concrete and robust explanatory video. Thank you Paul.
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!!!
This is THE best tutorial I've seen so far! And boy I've seen many.
Thanks Paul!
Much of this video is not appropriate anymore, but the description of what state, binding, etc are is TOTALLY worth watching. I have watched so many videos, but this is the first time I have understood these concepts. Well done Paul!!
I’m just getting started. What would you recommend is the perfect video right now for this information? Thank you very much.
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!
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 :)
Wow! Best SwiftUI video in the whole UA-cam! Thank you!
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!
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
Been stuck on these concepts for days, this video really help improve my understanding!
I've watched a few different videos on @State, @ObjectBinding and @EnvironmentObject and it didn't make that much sense. Your explanation was amazing, clear and high descriptive. Great job :)
Your clarity is awesome. Can you do one that uses Core Data?
maybe he already did one go check : )
Core Data with SwiftUI
@@rickstrickland2464 oh now i get it : )
I wasn't able to make it work too, got to figure a good way to make managed objects conform to bindableObject
I’ve been an iOS dev for 1 week :) i think you can pull initial startup data out of core data in the scene delegate. Then pass that data into EnvironmentObjects so it can be accessible to all child view from main. Then each sub view can perform CRUD operations on it with core data. This method may not be great if you’re pulling a lot of data into memory. Perhaps there is a better way? Would love to hear!
Every time I watch your videos it gives me a deeper understanding of the topic explained. Thank you so much!
Your content is gold. Thanks Paul!
Oh my goodness. This @EnvironmentObject thing might just save my life. Thank you thank you!
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)
You explain very easily even without the help of your two
dogs :) You are the best ! Hope you continue to make many more videos!
Can we refactor all the states out of view structs in a single file for example, and still access and control them from all views?
That would be so awesome.
Amazing video, teaches us core concept in a very good way. BUT The Victor Hugo reference nailed it!!!
You're a great teacher, easy to understand.
These videos are soooooo good. Your teaching style is amazing and easy to follow, but not slow enough that I'm skipping around for the info. Clear, concise and concentrated. Superb! Also, you explain the WHY. It's so important, but what so many people miss.
Best no bs intro (experienced programmer here)
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
💪🏻😀😎
I think this is the best tutorial video you’ve ever made.
Excellent tutorial, I finally understand these concepts after trying a few other sources. Thanks Paul!
Much needed explanation!! Thanks Paul
Excellent! All gaps flled. Thank you. 👍🏻
Paul you are smashing it again!!! Great breakdown of new tools!!!
Great video @twostraws very well explained and delivered! Time to write some SwiftUI...
Being an iOS & React developer feels great with SwiftUI. :)
Great explanation, love your professional tutorial
Great explanation, been trying to grasp this concept for a loooooong time, its finally coming together. Thank you
Paul, we generally keep state as a completely different place to the UI components themselves, this provides a layer between state/transport and UI.
Loved it! Clear tutorial.
"please just stop and thnik for one moment how amazing that is" is the one possible definition when it comes to swiftui.
Best tutorial for the states. Loved it
Hi Paul. Thank you for this awesome video. Excellent tutorial. Your explanation is accurate, concise, and clear. Congrats!
Nest video for a guy who comes from java and python. Thanks!
BEST EXPLANATIONS !! BIG UP!!!
U r superb explaining ❤
5:46 beautiful example on how @State keyword works
Just learning Swift.. this was really helpful. And I caught your bread and 24601 reference… Cheers for that one!!! 🥃
Excellent tutorial! Thanks!
Your videos are awesome man.
I've learned a lot from this. Thank you!
I love SwiftUI n I love this Tutorial too. This is awesome.
Finally my company decided to start the next project using SwiftUI on iOS 13 and here I am, BOOOM :)
Awesome video Paul
For anyone watching in 2022 ❗❗
@ObjectBinding was renamed to *@ObservedObject*
BindableObject was renamed to *ObservableObject*
and finally, in the new ObservableObject, didChnage was renamed to *objectWillChange*
thx
This should be pinned!
Great explanation! Thank you
Now this now a year later, it's so clear. Thanks
This is Great! Thank you Paul
Thank you very much! This was the first time I really understood what was going on...
What a clear explanation! Thanks! Also understandable for a beginner like me :-)
Awesome video, super concise!
This is well described and very helpful video indeed. Keep the good work up,,, you are doing a commendable job for the community.
Great explanation. Thanks.
Great videos, thank you so much. I'd like to suggest you a subject for the next videos, it would be great to see how to work with CoreData and SwiftUI!
Thank you for this tutorial!
This is priceless. Thank you
Another great video - thank you.
Thank you so much for this video. You have amazing good teaching skills!
Stumbled upon your tutorials and explanations and it’s amazing. I am currently doing QA work and do some dev work too as I’m learning. However, this is preparing me for the future and I really appreciate your videos and explanations. I still want to transition from QA to dev because it’s more interesting but I know I have a while to go.
Hi Paul, thank you for the tutorials you are making. Helps me alot.
13:40
Will it make an infinite loop as the first textfield changes reflects on third textfield and vice versa ??
Excellent. Thank you so much ☺️☺️👍
You make really great videos, and thank you for that. Regarding this one: My projects have no SceneDelegate, so an update would be highly appreciated. Where and how do you set up the global varible in the .app file?
Thanks for the great explanation, Paul! Now most of the magic behind SwiftUI is much clearer for me :-)
Great explanation
You are really brilliant smart.... What a wonderful explain!? Thank you sooooo much!
What do we do at 18:40 now that Scene Delegates are not produced in new default SwiftUi files?
Thanks Paul - great visuals for the video along with your clear instruction.
+1 for the request for a basic Swifty I app that uses core data.
Love all your tutorials. Would be great to have in depth tutorials on Combine framework as well.
This is a superb video.
Thank you so much for this!!
Thank you so much, your explanation of these concepts is very clear
Great video! Thank you!
~AMAZING~ This is SOOO helpful!!!
Love❤️ this Video.
Excellent explanation!
EXCELLENT Explanation !!!
3:59 is my favourite part of the the video 🤯
Very good material thanks
Great vid!! Love the explanations!
fantastic tutorial. great
Very good explanation, learnt a lot 👍
Awsome Teacher.. thank you for your great lecture
really great video 👍
Hi Paul, at ~15:15, you mention making sure to call passthroughsubject on the main thread. I searched all over and can't figure out how exactly to do that. Could you clarify via a code snippet on how to write that function on the main thread? Thanks!
Apple should've just let Paul see SwiftUI a week early and link all of their documentation to hackingwithswift.com. That would've saved a lot of developers a lot of time. What an awesome explanation!
If multiple windows are created, say with a split screen on iPad showing two windows of your same app, will SceneDelgate pass the same reference of userData: User to both ContentView's? 18:45
Xcode 11 beta 7, get errors at the 10:25 mark.. Cannot invoke initializer for type 'TextField' with an argument list of type '(Binding)'
Great video! Thank you
Thanks for your tutorial
This is the best explanation so far! However, I do hope you can add in explanation of @Binding besides these 3.
Here's a really interesting problem, how do you do object binding of type int/double with textfield??
Ananta Shahane wouldn’t you just use state?