What is the reason for ObservedObject over StateObject in the SwiftUI property wrappers for realm?

The ObservedResults, ObservedSectionedResults & ObservedRealmObject all use @ObservedObject for their underlying ObservableObject storage. This is causing the objects/queries to be excessively re-created. We were wondering if there was a specific reason that ObservedObject was chosen over StateObject or whether it’s just to provide support to iOS 13

1 Like