Instance Property


The threshold for using tightening as an alternative to truncation.


var tighteningFactorForTruncation: Float { get set }


When the line break mode specifies truncation, the text system attempts to tighten inter character spacing as an alternative to truncation, provided that the ratio of the text width to the line fragment width does not exceed 1.0 + the value of tighteningFactorForTruncation. Otherwise the text is truncated at a location determined by the line break mode. The default value is 0.05. This value can be a positive or negative value. Values less than or equal to 0.0 result in not tightening.

See Also

Controlling hyphenation and truncation

var hyphenationFactor: Float

The paragraph’s threshold for hyphenation.

var allowsDefaultTighteningForTruncation: Bool

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