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

Adding UIColor variants of preferred color methods #51

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

Conversation

mergesort
Copy link

There is a bug where the conversion of UIColor(Color) does not respect dark/light mode properly, the conversion is lossy with respect to color scheme. I’ve added a small helper that handles this properly, with a safe fallback to UIColor(Color) in the very unlikely event that asset catalog formats change in the future.

Dark Mode Before

image

Dark Mode After

image

…t mode colors from asset catalogs not being respected
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

1 participant