Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/heckj/automergeswiftadditions
Swift overlays over Automerge-swift to make interacting with Automerge Documents easier
https://github.com/heckj/automergeswiftadditions
automerge crdt swift
Last synced: 15 days ago
JSON representation
Swift overlays over Automerge-swift to make interacting with Automerge Documents easier
- Host: GitHub
- URL: https://github.com/heckj/automergeswiftadditions
- Owner: heckj
- Created: 2023-05-16T23:19:08.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-06T23:20:24.000Z (6 months ago)
- Last Synced: 2024-10-10T19:41:08.123Z (about 1 month ago)
- Topics: automerge, crdt, swift
- Language: Swift
- Homepage:
- Size: 248 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Automerge Swift Additions
[![codecov](https://codecov.io/gh/heckj/AutomergeSwiftAdditions/branch/main/graph/badge.svg?token=D592XNTYBM)](https://codecov.io/gh/heckj/AutomergeSwiftAdditions)
![sunburst graph of code coverage](https://codecov.io/gh/heckj/AutomergeSwiftAdditions/branch/main/graphs/sunburst.svg?token=D592XNTYBM)
---
Explorations in extending [Automerge-swifter](http://github.com/automerge/automerge-swifter/) to be easier to use within a SwiftUI app context.
I'd previously been doing this work in [AMTravelNotes](https://github.com/heckj/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