automerge / automerge-swift

Swift language bindings presenting Automerge
https://automerge.org/automerge-swift/documentation/automerge/
MIT License
233 stars 13 forks source link

Add Observable to Automerge.Document #107

Closed heckj closed 7 months ago

heckj commented 8 months ago

For the purposes of syncing, it would be immensely useful to be able to get notifications from a Document instance when it was updated. For the simplest case, just a signal that "something changed" so that any observer can react - sync, inspect, gossip, etc.

Add ObservableObject conformance to the base Document type.