dimonovdd / Xamarin.MediaGallery

This plugin is designed to picking and save images and video files from native gallery of Android and iOS devices and capture photos
MIT License
148 stars 18 forks source link

iOS 15 - Pick photo 'Add' and 'Cancel' button text not visible #95

Closed justinhorner closed 2 years ago

justinhorner commented 2 years ago

Description

Recently converted to using this plugin instead of the MediaPlugin (https://github.com/jamesmontemagno/MediaPlugin) for taking and selecting photos.

After the transition, I noticed that when picking a photo on iOS 15 devices, the 'Add' and 'Cancel' button text color is white and the popover background color is also white, which results in the buttons being essentially invisible to the user.

image

I've noticed that if you scroll through the photos you can sometimes then see the text because the background is no longer white.

image

I thought it was related to an outdated Xamarin.Forms nuget package but I upgraded to the latest Xamarin.Forms package, 5.0.0.2337, and noticed the issue persists. I checked my code and was not immediately able to come across anything that seemed to be overriding the button text color used in the popover...but I will continue to see if an override in my code might be the culprit.

I'm curious if anyone else has encountered this issue and if so, might be aware of a solution?

Actual Behavior

Text color in Popover used for photo selection is white and the background is also white, making the text 'invisible' to the user.

Expected behavior

Text color in Popover would be a color other than white (the background color)

Steps to reproduce the behavior

N/A

Screenshots or Videos

(in description)

Reproduction Link

N/A

Configuration

justinhorner commented 2 years ago

Closing this as the issue was in my code base. Should anyone else happen to come across this issue, I was setting the tint color in a custom Page renderer...I updated the below code to use a different TintColor for iOS 14+ and that fixed my issue.

Bad:UINavigationBar.Appearance.TintColor = UIColor.FromRGB(255, 255, 255); Good: UINavigationBar.Appearance.TintColor = UIColor.FromRGB(0, 122, 255);