NSMutableAttributedString with adjustsFontSizeToFitWidth is broken on iOS 14

Number:rdar://FB8699725 Date Originated:
Status:Open Resolved:
Product:iOS Product Version:14.0
Classification: Reproducible:Yes
In iOS 14 if you create NSMutableAttributedString and add some attribute let's say 

attributedString.addAttribute(.backgroundColor, value: UIColor.blue, range: .init(location: 1, length: 1))  

then adjustsFontSizeToFitWidth = true will stop working i.e. label won't resize but will be truncated even though it would perfectly fit if font size was adjusted. 

On previous iOS versions everything works as intended.


Having the same problem.

Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!