One Logo Pool Ball
App Frameworks · IOS API REFERENCE

Observation

Make responsive apps that update the presentation when underlying data changes.

13 types

21 callable entries

14 skipped

60% entry coverage

Generated from iOS SDK 27.1. Availability is shown on each declaration; permissions and entitlements still apply.

Types

Functions and constants

method · iOS 26.0+

makeAsyncIterator

TypeScript
makeAsyncIterator(): Observations_Iterator<number, NativeError>
Swift declaration
func makeAsyncIterator() -> Observations<Element, Failure>.Iterator

Creates the asynchronous iterator that produces elements of this asynchronous sequence. - Returns: An instance of the `AsyncIterator` type used to produce elements of the asynchronous sequence.

method · iOS 26.0+

next

TypeScript
next(): Promise<(number) | null>
Swift declaration
mutating func next(isolation iterationIsolation: isolated (any Actor)? = #isolation) async throws(Failure) -> Element?

Asynchronously advances to the next element and returns it, or ends the sequence if there is no next element. - Returns: The next element, if it exists, or `nil` to signal the end of the sequence.

Skipped declarations

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

withContinuousObservation(options:apply:)

The iOS SDK compiler rejected this binding: parameter of noncopyable type 'ObservationTracking.Event' must specify ownership

ObservationTracking.Token.cancel()

The iOS SDK compiler rejected this binding: instance method 'receiver()' requires that 'ObservationTracking.Token' conform to 'Copyable'

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)

ObservationTracking.Event.kind

The iOS SDK compiler rejected this binding: instance method 'receiver()' requires that 'ObservationTracking.Event' conform to 'Copyable'

ObservationTracking.Event.matches(_:)

This parameter hides a concrete Swift type.

ObservationTracking.Event.cancel()

The iOS SDK compiler rejected this binding: instance method 'receiver()' requires that 'ObservationTracking.Event' conform to 'Copyable'

ObservationTracking.Options.init(arrayLiteral:)

A variable number of Swift arguments is not supported.

withObservationTracking(options:_:onChange:)

The iOS SDK compiler rejected this binding: parameter of noncopyable type 'ObservationTracking.Event' must specify ownership

withObservationTracking(_:onChange:)

callback cannot propagate synchronous failure

Observations.init(_:)

synchronous callback requires a nonescaping JS-thread call

Observations.untilFinished(_:)

synchronous callback requires a nonescaping JS-thread call