Hello,
Welcome to Microsoft Q&A!
You could try to detect if the UIImagePickerController present/dismiss in ViewWillDisappear/ViewWillAppear
method of a ViewController, so you need to create a custom renderer of Page.
Sample code
[assembly : ExportRenderer(typeof(YourPage),typeof(MyRenderer))]
namespace CollectionViewFooterRefreshViewRepro.iOS
{
class MyRenderer : PageRenderer
{
public override void ViewWillDisappear(bool animated)
{
base.ViewWillDisappear(animated);
if(UIApplication.SharedApplication.KeyWindow.RootViewController is UIImagePickerController)
{
UINavigationBar.Appearance.BarTintColor = UIColor.Red;
}
}
public override void ViewWillAppear(bool animated)
{
base.ViewWillAppear(animated);
if (UIApplication.SharedApplication.KeyWindow.RootViewController is UIImagePickerController)
{
UINavigationBar.Appearance.BarTintColor = UIColor.Clear;
}
}
}
}
Thank you.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.