My team at Apple, the SwiftUI Previews team, is looking for an intern for summer 2024! To learn more and how to apply, checkout https://t.co/gMQgRmfl7r
While talking to developers we get a lot of questions on how to initialize a @StateObject with external values.
Today we update our docs by greatly expanding around all our data flow primitives with special attention to StateObject. You'll find better explanations on how to initialize StateObject with external data and few words around what to pay attention when doing so (https://developer.apple.com/documentation/swiftui/stateobject)
We hope this helps everyone get more clarity and understanding on how to work with SwiftUI.