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 seting the
numberOfLines property to
0 on your
UILabel. You should also avoid using fixed values for any heights or widths and instead use
let label = UILabel()
label.text = "Avoid text truncation"
label.numberOfLines = 0