Text truncation on iOS
Text should never get truncated in your app, even when users have enlarged their font size. Instead, apps should adapt the interface to the available space.
On iOS, you can avoid text truncation by removing all instances of maxNumberOfLines
from your app. You should also avoid using fixed values for any heights or widths and instead use constraints
and self-sizing
.
let label = UILabel()
label.text = "Avoid text truncation"
label.maxNumberOfLines = REMOVE