textStyling(at:in:)
Provides a dictionary that customizes the appearance of strings.
Declaration
func textStyling(at position: UITextPosition, in direction: UITextStorageDirection) -> [NSAttributedString.Key : Any]?Discussion
The returned strings might pertain to text styling information for a correction rectangle, for example.