Instance Property


The minimum permissible proportion to shrink the font size to fit the text into the available space.


var minimumScaleFactor: CGFloat { get set }


This value is a fraction between 0 and 1 (inclusive). The default value is 1.

SwiftUI uses this value to shrink text that doesn’t fit in a view when it’s okay to shrink the text. For example, a label with a minimumScaleFactor of 0.5 draws its text in a font size as small as half the actual font if needed.

See Also

Accessing Paragraph Styles

var allowsTightening: Bool

A Boolean value that indicates whether inter-character spacing should tighten to fit the text into the available space.

var layoutDirection: LayoutDirection

The layout direction associated with the current environment.

var lineLimit: Int?

The maximum number of lines that text can occupy in a view.

var lineSpacing: CGFloat

The distance in points between the bottom of one line fragment and the top of the next.

var multilineTextAlignment: TextAlignment

A value that indicates how text instance aligns its lines when the content wraps or contains newlines.

var sizeCategory: ContentSizeCategory

The preferred size of the content.

var truncationMode: Text.TruncationMode

A value that indicates how the layout truncates the last line of text to fit into the available space.