There is a label in the storyboard into which text of various lengths is inserted.
@IBOutlet weak var textLabel: UILabel! textLabel.numberOfLines = 0 textLabel.text = "длинный текст" textLabel.sizeToFit() The problem is that this text is cut if it is long. How to avoid it?
textLabel.sizeToFit() does not help.