Contents

attributedString(for:)

Returns a new attributed string for the text element.

Declaration

func attributedString(for textElement: NSTextElement) -> NSAttributedString?

Parameters

Return Value

An NSAttributedString, or nil.

Discussion

Returns nil if the method can’t map textElement to an NSAttributedString.

See Also

Managing text elements