typingAttributes
The attributes to apply to new text that the user enters.
Declaration
var typingAttributes: [NSAttributedString.Key : Any] { get set }Discussion
This dictionary contains the attribute keys (and corresponding values) to apply to newly typed text. When the text view’s selection changes, the contents of the dictionary are cleared automatically.