Re: Accessibility set in Code vs. set in Interface Builder?
Re: Accessibility set in Code vs. set in Interface Builder?
- Subject: Re: Accessibility set in Code vs. set in Interface Builder?
- From: Chris Fleizach via Accessibility-dev <email@hidden>
- Date: Sat, 29 Aug 2020 09:54:06 -0700
In Interface builder, you can only set static values. There’s no way to
conditionalize the values you set there
When you set values in actual code, you can change them or conditionalize them
as needed.
As an example, if you have a Mailbox button that shows the number of unread
items.
You would want to set
accessibilityLabel = Mailbox
accessibilityValue = 3 unread emails
You wouldn’t be able to set the accessibilityValue like that from interface
builder (although accessibilityLabel can be set appropriately)
> On Aug 29, 2020, at 6:02 AM, Petra Ritter via Accessibility-dev
> <email@hidden> wrote:
>
> Helle
>
> In Xcode there are two way to implement accessibility.
>
> In the Interface Builder in the Indemnity inspector in the section
> accessibility or in the swift code.
>
> Is there a difference between this two ways to implemented accessibility or
> there are limitations when using the Interface Builder?
>
> I am just interested what I have to day if I get asked by developers.
>
>
> Best regards
>
> Petra Rittter
> _______________________________________________
> 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