adjust text font size in label
I would like to adjust the font size in a label so that the entire text is always displayed. My first approach was to simply count the lines and determine the size. If the size is then larger as the label I wanted to reduce the font size.
If I start with
I always get an outdated value back.
I set the text with :
label.text = str_text
Am grateful for any tips and tricks, even if there is still a more elegant method for my problem.
Thx and cya Thommy