init(fontAttributes:)
Creates a font descriptor with the specified attributes.
Declaration
init(fontAttributes attributes: [UIFontDescriptor.AttributeName : Any] = [:])Parameters
- attributes:
The attributes for the new font descriptor. If
nil, the font descriptor’s attribute dictionary will be empty.
Return Value
The new font descriptor.