Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minor strings simplifications #1686

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

minor strings simplifications #1686

wants to merge 1 commit into from

Conversation

bryanmontz
Copy link
Contributor

Issues covered

No GitHub issue.

Description

Simplifies our localized string usage in a few places.

.accessibilityLabel(Text("stringKeyHere")) -> .accessibilityLabel("stringKeyHere")

Similar changes for SecureField, Button, .navigationBarTitle.

No visible changes to the user, but here is a screenshot showing that the accessibility label is still the localized string and not the key itself:
Cursor

@bryanmontz
Copy link
Contributor Author

@pelumy Please see the changes in this PR to DeleteConfirmationView for the current best practice for localized strings in views.

@pelumy
Copy link
Contributor

pelumy commented Oct 30, 2024

@pelumy Please see the changes in this PR to DeleteConfirmationView for the current best practice for localized strings in views.

Thanks @bryanmontz . Noted.

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