Label does not have time to update depending on the text. When you enter text in a label and then add the width and height of the label to variables, it writes the old label values. How can I solve the problem?
labelHidden.text = "Какой-то текст..." textWidth = labelHidden.bounds.width textHeight = labelHidden.bounds.height
UILabel
or justLabel
? What is the full class name? - Nick Volynkin ♦