automerge / automerge-swift

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

Text indexing - docs update, and fixing AutomergeText updating for multi-byte Characters #99

Closed heckj closed 5 months ago

heckj commented 5 months ago

Fixing docs about index positions in Automerge - they're not UTF8 view positions, but UnicodeScalars - and the whole update process for AutomergeText fails badly with complex unicode characters (example: "๐Ÿ‡ฌ๐Ÿ‡ง๐Ÿ‘จโ€๐Ÿ‘จโ€๐Ÿ‘งโ€๐Ÿ‘ฆ๐Ÿ˜€")