The getting started guide Open a Synced Realm indicates the first time a realm is opened, it should be with asyncOpen.
The reason is that the normal Realm() initializer is a write and creates the database schema which would fail on a Read Only realm.
If Realm.asyncOpen is used the first time, but then the normal initializer is used thereafter
realm = try! Realm(configuration:
would that still not be a write? Should synced realms only be opened with .asyncOpen?
What’s the proper process here - should .asyncOpen be tossed into the AppDelegate or app opening sequence?
The documentation implies this applies to all realms?
If it is the first time opening that particular realm, especially if it is a read-only realm
but then says specifically for read-only
the first time you open any given read-only realm.
Any guidance is appreciated.