Instance Property


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


var allowsDefaultTighteningForTruncation: Bool { get }


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

Getting Line Breaking Information

var lineBreakMode: NSLineBreakMode

The mode that should be used to break lines in the receiver.

var hyphenationFactor: Float

The paragraph’s threshold for hyphenation.

var tighteningFactorForTruncation: Float

The threshold for using tightening as an alternative to truncation.