label.minimumScaleFactor
works very well to fit the font to the width.
However the font size, for alphabet such as "I", is typically larger than other letters such as "H". This makes the design very weird.
I need help to fit the font to the label height. Any solutions/functions/class that I can adopt?
Swift 3...
label.minimumScaleFactor = 0.1 //you need
label.adjustsFontSizeToFitWidth = true
label.lineBreakMode = .byClipping
label.numberOfLines = 0
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With