Re: Supporting dynamic type
Re: Supporting dynamic type
- Subject: Re: Supporting dynamic type
- From: Vincenzo Rubano <email@hidden>
- Date: Fri, 6 Oct 2017 19:19:42 +0200
Hi Clare,
thanks for your reply. I am not drawing anything manually, I am just using
default system controls. I am interested in supporting dynamic type throughout
the whole app as much as I can.
Given that UIButton uses UILabel internally, I guess it’ll work properly after
setting the adjustsFontForContentSizeCategory property on the UILabel
appearance proxy. Won’t it?
So the list of controls whose howToSupportDynamicType property is nil for me
narrows down to:
- UINavigationController (title, prompt, toolbar);
- UITabBar (I’ve seen the changes introduced in iOS 11 thanks to James’ reply,
but what happens when linking against the iOS 10 SDK?);
- WKWebView (I’m already using a system provided text style within the webpage,
but I am not sure that it is enough);
- UISegmentedControl;
- UISearchField;
- AVPlayerViewController;
Vincenzo Rubano
NVApple team
https://www.nvapple.it/about-us
> Il giorno 06 ott 2017, alle ore 14:08, Clare Kasemset <email@hidden> ha
> scritto:
>
> Hi Vincenzo,
>
> Which controls are you interested in? For example, UIButton gives you access
> to the underlying UILabel, so you can set the property on that instead. Or
> are you manually drawing text?
>
> Clare
>
> iPhoneから送信
>
> 2017/10/06 19:00、Vincenzo Rubano <email@hidden>のメール:
>
>> Hi all,
>>
>> since iOS 10.0 UIKit provides the UIContentSizeCategoryAdjusting trait
>>
>> https://developer.apple.com/documentation/uikit/uicontentsizecategoryadjusting
>>
>> which is very handy for supporting dynamic type without writing a ton of
>> boilerplate code. By using it you can enable support for dynamic type from
>> the UIAppearance proxy, which is even handier!
>>
>> However, according to docs only UILabel, UITextField and UITextView adopt
>> it. What about other controls? Do you need to reload fonts the old way or do
>> they have some “special” magic in order to support dynamic type properly? Or
>> perhaps they can be coerced in some way to adopt the trait?
>>
>> Thanks in advance for your support
>>
>>
>> Vincenzo Rubano
>>
>> NVApple team
>> https://www.nvapple.it/about-us
>>
>>
>>
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Accessibility-dev mailing list (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Accessibility-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden