Re: Accessibility UIContentSizeCategory or current accessibility font setting
Re: Accessibility UIContentSizeCategory or current accessibility font setting
- Subject: Re: Accessibility UIContentSizeCategory or current accessibility font setting
- From: Matt Jacobson via Cocoa-dev <email@hidden>
- Date: Sun, 17 Oct 2021 15:50:57 -0400
Hey Alex,
> On Oct 17, 2021, at 2:51 PM, Alex Zavatone via Cocoa-dev
> <email@hidden> wrote:
>
> We’ve got a situation where we need to check the current accessibility font
> size enum and apply custom settings to some attributed fonts. I’ve seen that
> there is a way to check the current dynamic text size using SwiftUI, but I
> haven’t seen how to do it using UIKit.
>
> I’ve seen that UIContentSizeCategory exists, but no idea how to see what the
> current value is.
>
> Is anyone aware how to do this? TIA.
Have you tried this?
[UIApp preferredContentSizeCategory]
(Don’t forget to observe changes: UIContentSizeCategoryDidChangeNotification.)
Matt
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden