镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

[WIP DNR] Support overriding a11y label on AttributedLabel - #493

Draft
kyleve wants to merge 1 commit into
mainfrom
kve/label-override-a11y
Draft

kyleve wants to merge 1 commit into
mainfrom
kve/label-override-a11y

Conversation

@kyleve

@kyleve kyleve commented May 2, 2024

Copy link
Copy Markdown
Contributor

No description provided.

}

isAccessibilityElement = model.isAccessibilityElement
accessibilityLabel = model.accessibilityLabel

@RoyalPineapple RoyalPineapple Jun 4, 2024 •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
accessibilityLabel = model.accessibilityLabel
if let label = model.accessibilityLabel {
accessibilityLabel = label
}

Otherwise a nil value in the var would override the default label

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants