Contents

access(_:keyPath:)

Registers access to a specific property for observation.

Declaration

func access<Subject, Member>(_ subject: Subject, keyPath: KeyPath<Subject, Member>) where Subject : Observable

Parameters

  • subject:

    An instance of an observable type.

  • keyPath:

    The key path of an observed property.

See Also

Identifying transactional access