Post

Using @Observable is great, but it has one small caveat. The initializer of the @Observable objects will be called multiple times, even with @State @nilcoalescing.com's excellent article covers that topic in more detail. #iOS #swiftUi nilcoalescing.com/blog/Initial...

nilcoalescing.comInitializing @Observable classes within the SwiftUI hierarchyLearn the recommended ways to initialize and store @Observable classes in SwiftUI views, and see what can go wrong when observable state is managed incorrectly.

4 reposts10 likes

No replies yet.