Usability issue with SwiftUI @AsyncOpen and @AutoOpen pattern

If you have a view like OpenRealmView as is in examples that uses @AsyncOpen or @AutoOpen, then every time that view gets rerendered, your app goes through the connection process again.

Is there an intended way to avoid this, or what different approach do I need to use for opening the Realm?

Thanks,
-Jon

1 Like