Relative Content

Tag Archive for iosuiviewuifont

Updating label text when font set with systemFont vs UIFont

When setting font in configureSpeedLabel and configureProgressLabel below, if I set font using UIFont speedLabel.font = UIFont(name: "TimesNewRomanPSMT", size: 24) then the progress track gets updated gradually as expected (Video: Track YES Updating), but when I set font using systemFont such as speedLabel.font = .systemFont(ofSize: 24, weight: .light) then progress track is not updating gradually (Video: Track NOT Updating).
Why is this happening? How to set using systemFont and keep the track updating as expected?