Initializer

init(fontAttributes:)

Initializes and returns a new 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.

See Also