Ole Begemann 4/27/2022

AttributedString’s Codable format and what it has to do with Unicode

Read Original

This 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.

AttributedString’s Codable format and what it has to do with Unicode

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week