You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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 apresentingViewController
, 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
theWebview
belongs. I could easily compare those, but it looks like everything in the Navigator is done to make sure you can't access the twoSession
s. Theinit
where you can set the differentSession
s is internal, and both themodalSession
and thesession
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?
The text was updated successfully, but these errors were encountered: