characters
The text storage contents as an array of characters.
Declaration
var characters: [NSTextStorage] { get set }Discussion
Unless you’re dealing with scriptability, you shouldn’t use or modify this property directly. For indexed access to characters, use NSAttributedString’s length method to access the string, and NSString’s character(at:) method to access the individual characters.