Contents

withSize(_:)

Returns a font object that is the same as the font, but has the specified size.

Declaration

func withSize(_ fontSize: CGFloat) -> UIFont

Parameters

  • fontSize:

    The desired size (in points) of the new font object. This value must be greater than 0.0.

Return Value

A font object of the specified size.

See Also

Creating Fonts