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] = [:]) -> UIFontDescriptorParameters
- attributes:
The new attributes.
Return Value
The new font descriptor.