The attributes used to indicate the selection.
SDK
- macOS 10.0+
Framework
- App
Kit
Declaration
var selectedTextAttributes: [NSAttributed String.Key : Any] { get set }
Discussion
Text color, background color, and underline are the only supported attributes for selected text.