Instance Property

allowsDefaultTighteningForTruncation

A Boolean value indicating whether the system may tighten inter-character spacing before truncating text.

Declaration

var allowsDefaultTighteningForTruncation: Bool { get set }

Discussion

When this property is set to true, the system tries to reduce the space between characters before truncating characters. The system performs this tightening in cases where the text would not otherwise fit in the available space. The maximum amount of tightening performed by the system is dependent on the font, line width, and other factors.

The default value of this property is false.

See Also

Controlling hyphenation and truncation

var hyphenationFactor: Float

The paragraph’s threshold for hyphenation.

var tighteningFactorForTruncation: Float

The threshold for using tightening as an alternative to truncation.