mirror of
https://github.com/apple/swift.git
synced 2026-10-16 16:50:49 +02:00
+3








9ead8781d4
Co-authored-by: Alex Martini <amartini@apple.com> Co-authored-by: Graham Lee <glee23@apple.com> Co-authored-by: Chris Adamson <cadamson@apple.com> Co-authored-by: Kirby Turner <kirby_turner@apple.com> Co-authored-by: Paris Pinkney <ppinkney@apple.com> Co-authored-by: Dave Spector <dspector@apple.com> Co-authored-by: Sofia Rodriguez Morales <sofia_rodriguez@apple.com> Co-authored-by: Ethan Kusters <ekusters@apple.com> Co-authored-by: Goli Mohammadi <g_mohammadi@apple.com> Co-authored-by: Adora Vaz <a_vaz@apple.com> Co-authored-by: David Rönnqvist <ronnqvist@apple.com> Co-authored-by: Nate Merseth Cook <natecook@apple.com> Co-authored-by: Susan Conant <susan_c@apple.com>
732 B
732 B
Observation/ObservationRegistrar
@Metadata { @DocumentationExtension(mergeBehavior: override) }
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.
Topics
Creating an observation registrar
Observation/ObservationRegistrar/init()
Receiving change notifications
Observation/ObservationRegistrar/willSet(_:keyPath:)Observation/ObservationRegistrar/didSet(_:keyPath:)
Identifying transactional access
Observation/ObservationRegistrar/access(_:keyPath:)Observation/ObservationRegistrar/withMutation(of:keyPath:_:)