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

Add labels and resizing to fields for accessibility on add connection… #3793

Merged
merged 2 commits into from
Jan 9, 2025

Conversation

bbirman
Copy link
Member

@bbirman bbirman commented Jan 8, 2025

… screen

Screen with new design:
after

and example with large text:
large

Button {
save()
} label: {
Text("Done").bold()
Copy link
Member Author

Choose a reason for hiding this comment

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

I realized there’s a snag here— the old code uses [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemDone… and the system takes care of localization but I haven’t been able to find an equivalent in Swift UI so far (I found someone else’s tweet with the same question and no answers 😬). I could also add this to our localizable strings which feels a little annoying but we already needed new entries to split the field labels and placeholders so maybe not as bad to do all at once?

Copy link
Contributor

Choose a reason for hiding this comment

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

There does not seem to be an equivalent in Swift UI, so you probably have to add a localized string for done.

Copy link
Member Author

Choose a reason for hiding this comment

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

👍 thanks for looking!

Copy link
Member Author

Choose a reason for hiding this comment

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

I have one more change for the tint color of the button, I'll open another PR because I touched a bunch of files

@codecov-commenter
Copy link

codecov-commenter commented Jan 8, 2025

Codecov Report

Attention: Patch coverage is 0% with 53 lines in your changes missing coverage. Please review.

Project coverage is 62.86%. Comparing base (92f9b2a) to head (6200322).
Report is 3 commits behind head on dev.

Files with missing lines Patch % Lines
...ore/Classes/Login/LoginHost/NewLoginHostView.swift 0.00% 49 Missing ⚠️
...Login/LoginHost/SFSDKLoginHostListViewController.m 0.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #3793      +/-   ##
==========================================
+ Coverage   62.75%   62.86%   +0.10%     
==========================================
  Files         224      225       +1     
  Lines       21358    21471     +113     
==========================================
+ Hits        13404    13498      +94     
- Misses       7954     7973      +19     
Components Coverage Δ
Analytics 84.09% <ø> (ø)
Common 68.96% <ø> (ø)
Core 51.87% <0.00%> (+0.31%) ⬆️
SmartStore 73.70% <ø> (-0.11%) ⬇️
MobileSync 87.58% <ø> (ø)
Files with missing lines Coverage Δ
...Login/LoginHost/SFSDKLoginHostListViewController.m 0.00% <0.00%> (ø)
...ore/Classes/Login/LoginHost/NewLoginHostView.swift 0.00% <0.00%> (ø)

... and 8 files with indirect coverage changes

@bbirman bbirman marked this pull request as ready for review January 9, 2025 00:00
@bbirman bbirman merged commit 7889621 into forcedotcom:dev Jan 9, 2025
13 of 14 checks passed
@bbirman bbirman deleted the add-connection branch January 9, 2025 21:53
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.

3 participants