I'm trying to support Large Font Accessibility in the app. There are places where we are using NSAttributedString to set the attributedText of a UILabel.
On UILabel, we've set adjustsFontForContentSizeCategory = true. Also, in the attributes, we're using UIFontMetrics to allow the label to adapt to the size changes.
UIFontMetrics(forTextStyle: .caption2).scaledFont(for: UIFont.systemFont(ofSize: 11))
Issue:
When I run the app, the UILabel displays the attributedText as per the device's current Size Category. But, when I change the size category from device's accessibility settings, the UILabel is not updated accordingly.
Can someone please help me resolve this issue?

