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

forceDisplayUI on iOS doesn't work when there are modal presented view controllers active #3

Open
pperera opened this issue May 8, 2021 · 0 comments

Comments

@pperera
Copy link

pperera commented May 8, 2021

forceDisplayUI should have a parameter for the presenter (the view controller that will be presenting the UI on top)

if this is not possible or desirable then something like the following should be done to ensure it presents correctly

Example written in C# (we use the lib using XamarinIOS - C#) but you should get the idea.

UIViewController vc = new UIViewController();
vc.View.BackgroundColor = UIColor.Green;
UIViewController presenter = UIApplication.SharedApplication.KeyWindow.RootViewController;
while(presenter != null && presenter.PresentedViewController != null)
{
    presenter = presenter.PresentedViewController;
}
presenter?.PresentViewController(vc, true, null);

commenting out the while loop and I get the same behaviour per the current choice sdk

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

No branches or pull requests

1 participant