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

[Fix] accessory button and help text color is not clearly visible #252

Merged
merged 2 commits into from
Aug 21, 2023

Conversation

des12437
Copy link
Contributor

@des12437 des12437 commented Aug 16, 2023

Description

Fixes a bug in iOS 16+ where the help text and accessory button are not clearly visible when the list item selection color is the accent color (purple/pink) instead of grey. This PR adds opacity to the help text so that the system sets the text color. The accessory button is now a label with an icon and tap gesture rather than a Button since the system will set the color automatically.

Linked Issue(s)

  • swift/issues/3878

How To Test

  • Test on iPhone and iPad on iOS 16 and iOS 17

Screenshots

Before:

After:

Copy link

@saratchandrakarumuri saratchandrakarumuri left a comment

Choose a reason for hiding this comment

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

Tested on both iOS 15 and 16 platforms and it is now rendering as expected on both the platforms

Copy link
Collaborator

@yo1995 yo1995 left a comment

Choose a reason for hiding this comment

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

Just one suggestion, otherwise looks good.

Shared/Supporting Files/Views/SampleRow.swift Show resolved Hide resolved
Copy link

@saratchandrakarumuri saratchandrakarumuri left a comment

Choose a reason for hiding this comment

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

Tested again with iOS 16 and iOS 17. This is now rendering as expected

@des12437 des12437 merged commit 2e1b625 into v.next Aug 21, 2023
1 check passed
@des12437 des12437 deleted the des12437/Fix-help-text-color branch August 21, 2023 21:21
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.

None yet

3 participants