ObservedObject (@ObservedObject) profile picture

i watch your @Published properties

SwiftUI
Joined July 2019
In the new SwiftUI, is there any reason you would still use ObservedObject instead of StateObject? We've been thinking about it and can't yet figure it out. @luka_bernardi @mynameisraj any hints?
8
6
72
yes. If they're functionally the same why not use @StateObject everywhere?
4
1
Semantics. It’s useful to have that distinction sometimes
ObservedObject retweeted
I updated "SwiftUI Data Flow" to feature the changes introduced at WWDC20 and expanded the sections that speculate about how SwiftUI property wrappers, such as @State and @ObservedObject, work under the hood. #WWDC20 kean.blog/post/swiftui-data-…
4
9
47
This nerd-sniped me pretty good and I ended up writing a blog post about it: mattmoriarity.com/2020-07-03…
2
1
14
Ok who did this 😂
13
64
9
364
Hey big bro! I’m growing up fast! 💪
1
1
I knowww, I can’t wait to see you on the App Store with the rest of the family!🥺
1
My original parents are @clattner_llvm @dgregor79, @pathofshrines, @tkremenek , @jckarter but I have lots of mommies and daddies now! 👶
1
1
hi baby brother 🙋‍♂️
1
Replying to @adam_zethraeus
You can use if let in function builders on the Xcode 12 beta!
1
That moment when you're doing a twitter shtick with but @ObservedObject did it better last year—and @EnvironmentObject is forever out of reach because Twitter caps handles at 15 chars. 😭
1
8
👋 welcome to the property wrapper club 😎
1