Essentials
Essentials copied to clipboard
[Bug] [iOS] Color conversion not quite right on iOS - apparent on Browser.OpenAsync
Description
Some part of the conversion through Xamarin.Forms.Color
=> System.Drawing.Color
=> UIColor
is not quite right.
I noticed this when trying to set PreferredToolbarColor
when using Browser.OpenAsync
and noticed the color does not match.
Steps to Reproduce
- Use
Browser.OpenAsync
with aPreferredToolbarColor
that matches one of app colors.
Expected Behavior
The colors look the same.
Actual Behavior
The colors look different.
Basic Information
- Version with issue: 1.6.1
Screenshots
Reproduction Link
https://github.com/galaxiaguy/xf-bugs/tree/bug/platform-color
I think this may be fixed with https://github.com/xamarin/Essentials/pull/1716
Same problem here ... hex color #296E4B, resulting in this difference:
Any idea on how to fix that would be great...
I did some more investigations on that matter. Even when setting no color at all or using the iOS SystemColors, the colors of the SfSafariViewController bars are different. I am not sure if this is a Xamarin.Forms or a (Xamarin.) iOS Problem at this point.
Seeing the same still on iOS 15.4.1 and essentials 1.7.1.