Christopher Campbell Jensen

@ccjensen
19 Followers
19 Following
47 Posts
aka Chris. Father. Software Engineer. Apple
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
SwiftUI Previews Internship 2024

SwiftUI Previews Internship 2024. GitHub Gist: instantly share code, notes, and snippets.

Gist

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.

StateObject | Apple Developer Documentation

A property wrapper type that instantiates an observable object.

Apple Developer Documentation