setAttributedString(_:)
Replaces the receiver’s entire contents with the characters and attributes of the given attributed string.
Declaration
func setAttributedString(_ attrString: NSAttributedString)Parameters
- attrString:
The attributed string whose characters and attributes replace those in the receiver.