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

Figuring out if a BridgeComponent is in a modal #89

Open
tim-vandecasteele opened this issue Feb 20, 2025 · 0 comments
Open

Figuring out if a BridgeComponent is in a modal #89

tim-vandecasteele opened this issue Feb 20, 2025 · 0 comments

Comments

@tim-vandecasteele
Copy link
Contributor

I want to write functionality for a BridgeComponent that acts differently if you're running in a modal or not. But I have a very hard time figuring out if the component is in a model. Initially I went through checking the activeNavigationController, and checking if it has a presentingViewController, but the problem here is that if the page loads quick enough, and the modal is still dismissing, that this seems to trigger false positives.

It looks rather simple if you would just check to what Session the Webview belongs. I could easily compare those, but it looks like everything in the Navigator is done to make sure you can't access the two Sessions. The init where you can set the different Sessions is internal, and both the modalSession and the session are internal as wel.

Is there a good reason for those to be internal? Would you be ok exposing this in some way, so I could access them for comparison?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant