Get bold font accessibily setting

I'm using a custom font im my App. I setup my custom font to honor the dynamic type. I use UIFontMetrics(forTextStyle: textStyle).scaledFont(for: font) for this. But this does not set the font to bold when in the accessibilty settings the the "Bold Text" switch is turned on. Is there a way to find out that the "Bold Text" is on, so that I also can set the font to bold?

Answered by Engineer in 722709022

You can query the following API to determine whether or not bold text is on https://developer.apple.com/documentation/uikit/1615156-uiaccessibilityisboldtextenabled?language=objc

Accepted Answer

You can query the following API to determine whether or not bold text is on https://developer.apple.com/documentation/uikit/1615156-uiaccessibilityisboldtextenabled?language=objc

That was what I'm looking for, thanks.

Get bold font accessibily setting
 
 
Q