attributedString(for:)
Returns a new attributed string for the text element.
Declaration
func attributedString(for textElement: NSTextElement) -> NSAttributedString?Parameters
- textElement:
The Nstextelement to map into an attributed string.
Return Value
An NSAttributedString, or nil.
Discussion
Returns nil if the method can’t map textElement to an NSAttributedString.