Instance Property

allowsDefaultTighteningForTruncation

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

Declaration

iOS, Mac Catalyst, tvOS, watchOS
@property(nonatomic) BOOL allowsDefaultTighteningForTruncation;
macOS
@property BOOL allowsDefaultTighteningForTruncation;

Discussion

When this property is set to YES, 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 NO.

See Also

Controlling hyphenation and truncation

hyphenationFactor

The paragraph’s threshold for hyphenation.

tighteningFactorForTruncation

The threshold for using tightening as an alternative to truncation.