Contents

addingAttributes(_:)

Returns a new font descriptor that’s the same as the existing descriptor, but with the specified attributes taking precedence over the existing ones.

Declaration

func addingAttributes(_ attributes: [UIFontDescriptor.AttributeName : Any] = [:]) -> UIFontDescriptor

Parameters

  • attributes:

    The new attributes.

Return Value

The new font descriptor.

See Also

Creating a font descriptor