> On Oct 18, 2021, at 10:51 AM, Alex Zavatone wrote:
>
>
>
>> On Oct 18, 2021, at 11:31 AM, David Duncan wrote:
>>
>> In general it's also preferred that you look at the traitCollection of the
>> most relevant view for this information – there are contexts for which the
>> content size
> On Oct 18, 2021, at 11:31 AM, David Duncan wrote:
>
> In general it's also preferred that you look at the traitCollection of the
> most relevant view for this information – there are contexts for which the
> content size category may not match the global value (and there is API on
>
In general its also preferred that you look at the traitCollection of the most
relevant view for this information – there are contexts for which the content
size category may not match the global value (and there is API on UIView to
restrict the overall range that you can apply as well). This
Hey Alex,
> On Oct 17, 2021, at 2:51 PM, Alex Zavatone via Cocoa-dev
> 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
If anyone would find this cheap hack useful to check what the current
accessibility dynamic text size is set to, here you go.
Still, I’d love to know the actual command so that I can remove this.
Cheers,
Alex Zavatone
import Foundation
import UIKit
// Use like so.
// let myString =
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