# Two options arround AttributedString.CharacterView: ## First option: This option has a performance pitfall, cause it's using a for-in to iterate in characters. ~~~swift let str: String = String(attrStr.characters) ~~~ ## Second option: This option has a complexity O(n), in practice is faster than the previous. ~~~ swift let str: String = String(attrStr.characters[...]) ~~~ source: [Swift forum](https://forums.swift.org/t/attributedstring-to-string/61667/2)