stleamist / BetterSafariView

A better way to present a SFSafariViewController or start a ASWebAuthenticationSession in SwiftUI.
MIT License
581 stars 57 forks source link

Adding UIColor variants of preferred color methods #51

Open mergesort opened 7 months ago

mergesort commented 7 months ago

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