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

A property wrapper type that subscribes to an observable Realm Object or List and invalidates a view whenever the observable object changes.