AttributedString’s Codable format and what it has to do with Unicode
Read OriginalThis technical article discusses the design considerations for making Swift's AttributedString Codable. It explains why naive approaches using character or byte offsets can fail due to Unicode complexities like evolving grapheme cluster definitions and normalization forms, which can break formatting ranges when data is exchanged across different systems or Swift versions.
Comments
No comments yet
Be the first to share your thoughts!
Browser Extension
Get instant access to AllDevBlogs from your browser