Re:Publish – A static site generator for Swift developers
by layoutIfNeeded on Wednesday January 01, 2020 @12:52AM
(#21926851)
The former is how NSAttributedString works in the Apple ecosystem. It’s a plain string with attributes attached to certain character ranges.
https://developer.apple.com/documentation/foundation/nsattri...
It's an old question, see the "piece-chain" structure Prof With chose for text-with-"looks" (aka "style") http://www.inf.ethz.ch/personal/wirth/ProjectOberon/PO.Syste... section 5.2, "Text Management".