How to use Realm with SwiftUI
问题 I have been trying to figure out how to use Realm with SwiftUI. The problem is that SwiftUI and Realm both have a List type. When you import SwiftUI into your Realm model to make the class a BindableObject and try to create a Realm List property there is an error. Is it possible to use an instance of the Realm object model and make it a BindableObject in SwiftUI? 回答1: Sure, it's very simple, use the module identifier as prefix like this : let members = RealmSwift.List<Member>() Now to the