makeAttributedString(font:)
Provides an attributed string for a given font.
Declaration
func makeAttributedString(font: UIFont) -> NSAttributedStringParameters
- font:
The font used for the attributed string. This can be any available font on the device.
Return Value
An NSAttributedString object with the supplied font.
Discussion
Supply a font to this method to get the NSAttributedString representation of the text contained within an element.