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 Object 또는 List 을(를) 구독하고 관찰 가능 객체가 변경될 때마다 뷰를 무효화하는 속성 래퍼 유형입니다.

  • 동적 멤버 조회를 사용하여 해당 속성에 대한 바인딩을 만들 수 있는 기본 관찰 가능 객체의 래퍼입니다.

    더 보기

    선언

    Swift

    @MainActor
    @dynamicMemberLookup
    @frozen
    public struct Wrapper
  • 지정된 스레드 유형에 대한 RealmState 구조체를 초기화합니다.

    선언

    Swift

    public init(wrappedValue: ObjectType) where ObjectType : RLMObjectBase, ObjectType : Identifiable
  • 지정된 스레드 유형에 대한 RealmState 구조체를 초기화합니다.

    선언

    Swift

    public init<V>(wrappedValue: ObjectType) where ObjectType == List<V>, V : RealmCollectionValue
  • 지정된 스레드 유형에 대한 RealmState 구조체를 초기화합니다.

    선언

    Swift

    public init(wrappedValue: ObjectType) where ObjectType : ProjectionObservable