Handling Client Reset error in SwiftUI

Hi Folks,
I’ve spent the better part of this week working out how to code a recovery mechanism from a Realm client reset error for our SwiftUI app(s). There is a little documentation here and a little there but nothing yet that is a fairly complete example of the entire solution for SwiftUI, and I’m hoping to help to remedy that.

I have filed a Github issue

I’d really like to hear your thoughts on it, especially if you can find ways to make it better. I’ve also filed a Realm Docs GitHub issue to turn this example (or a better version of it) into more documentation for SwiftUI Realm SDK.