Skip to content

Swift overlays over Automerge-swift to make interacting with Automerge Documents easier

Notifications You must be signed in to change notification settings

heckj/AutomergeSwiftAdditions

Repository files navigation

Automerge Swift Additions

codecov

sunburst graph of code coverage


Explorations in extending Automerge-swifter to be easier to use within a SwiftUI app context.

I'd previously been doing this work in AMTravelNotes as a sample app. As it turns out, Xcode is worse than useless at running tests when the hosting application is a UIDocument or NSDocument based app. Every time you invoke a test to see overall coverage, the apps launch and hang - which in turn hangs Xcode from doing any further testing.

Most of the code within this repository is exploratory - use utterly at your own risk. Anything that seems to be effective and useful I am intending to propose for merging into Automerge Swift language project: Automerge-swifter. At the moment, it uses code beyond the current release, and as such has a local reference dependency. This expects the Automerge-swifter project at the relevant branch to be checked out locally and in parallel with this repository.

Punchlist:

  • add read-only, auto-generated UUID into Document to identify it from compatriots

  • CBOR encode the document with the UUID and the Automerge "data" from a save for the document format

    • enabling matching decode - PotentCodables supports CBOR encoding
  • test SwiftUI binding concept - see what making dozens of updates to a ScalarValue does to doc size

About

Swift overlays over Automerge-swift to make interacting with Automerge Documents easier

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages