I have a UILabel
that grows according to the screen size (Using auto resizing). However, the font isn't upscaling. I tried setting the label's adjustFontSizeToFitWidth
property to YES, but it isn't working. Here is my code.
override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
outLabel.numberOfLines = 1
outLabel.adjustsFontSizeToFitWidth = true
outLabel.textAlignment = NSTextAlignment.center
}
I am not sure what to do at all. The font size stays the same no matter what.