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?
yes. If they're functionally the same why not use @StateObject everywhere?
4
1
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-…
ObservedObject retweeted
Replying to @mjmoriarity @nicklockwood @twostraws @_HarshilShah @luka_bernardi @StateObject @ObservedObject
This nerd-sniped me pretty good and I ended up writing a blog post about it: mattmoriarity.com/2020-07-03…
So you're not sure which SwiftUI property wrapper should be used when?
There's a website to help you! 🎉
swiftuipropertywrappers.com
My original parents are @clattner_llvm @dgregor79, @pathofshrines, @tkremenek , @jckarter but I have lots of mommies and daddies now! 👶
1
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
@jamiebishop123 do u know the author? 🤪
1











