One Logo Pool Ball
Observation · IOS API REFERENCE

ObservationRegistrar

struct · iOS 17.0+ · SDK 27.1

struct ObservationRegistrar

Provides storage for tracking and access to data changes. You don't need to create an instance of `ObservationRegistrar` when using the ``Observation/Observable()`` macro to indicate observability of a type.

Members (1)

init · iOS 17.0+

init

TypeScript
static init(): ObservationRegistrar
Swift declaration
init()

Creates an instance of the observation registrar. You don't need to create an instance of ``Observation/ObservationRegistrar`` when using the ``Observation/Observable()`` macro to indicate observability of a type.

Skipped declarations

4 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

ObservationRegistrar.access(_:keyPath:)

This declaration needs Swift generic type arguments. (no canonical witness for Subject)

ObservationRegistrar.willSet(_:keyPath:)

This declaration needs Swift generic type arguments. (no canonical witness for Subject)

ObservationRegistrar.didSet(_:keyPath:)

This declaration needs Swift generic type arguments. (no canonical witness for Subject)

ObservationRegistrar.withMutation(of:keyPath:_:)

This declaration needs Swift generic type arguments. (no canonical witness for Subject)

All Observation types →