ObservedRealmObject

@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
@MainActor
@propertyWrapper
public struct ObservedRealmObject<ObjectType>: DynamicProperty
where ObjectType: RealmSubscribable & ThreadConfined & ObservableObject & Equatable

一种属性包装器类型,用于订阅可观察 Realm ObjectList ,并在可观察对象发生更改时使视图失效。