Re: Accessibility role on iOS.
Re: Accessibility role on iOS.
- Subject: Re: Accessibility role on iOS.
- From: Chris Fleizach <email@hidden>
- Date: Thu, 16 Nov 2017 00:55:05 -0800
Another idea is that you can make a hidden UISwitch and set its value to the
same as your custom switch
Then in your custom switch you can do
- (UIAccessibilityTraits)accessibilityTraits { return [_realSwitch
accessibilityTraits]; }
- (NSString *)accessibilityValue { return [_realSwitch accessibilityValue]; }
> On Nov 16, 2017, at 12:51 AM, Ilya Konstantinov <email@hidden>
> wrote:
>
> Yes, please do. I filed a similar radar recently.
>
> Meanwhile, you can probably do *almost* the same with accessibilityValue, or
> you can try to post the "on"/"off" announcements programmatically.
>
> On Wed, Nov 15, 2017 at 6:55 PM Chris Fleizach <email@hidden
> <mailto:email@hidden>> wrote:
> The ability to make a control behave just like a UISwitch isn’t public
> (please file a bug report requesting that)
>
> In the meantime, you can include that extra info into the label
>
>> On Nov 15, 2017, at 8:09 AM, Michael Jordan <email@hidden
>> <mailto:email@hidden>> wrote:
>>
>> Hello all,
>>
>> While I understand the preference for Traits over static role constants in
>> UIKit, I’m trying to understand how certain controls like UISwitch are able
>> to communicate the accessibility role “AXCheckbox”. Is there any way to
>> communicate the accessibility role for a custom control, like for example a
>> radio button or checkbox, using UIKit or is this level of accessibility
>> customization discouraged in favor of overloading of accessibility labels
>> with localized role and state information?
>>
>> Sincerely,
>> Michael Jordan
>>
>>
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Accessibility-dev mailing list (email@hidden
>> <mailto:email@hidden>)
>> Help/Unsubscribe/Update your Subscription:
>>
>>
>> This email sent to email@hidden <mailto:email@hidden>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Accessibility-dev mailing list (email@hidden
> <mailto:email@hidden>)
> Help/Unsubscribe/Update your Subscription:
>
>
> This email sent to email@hidden
> <mailto: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