DialogService View is not KeyWindow in iOS #2672
-
Hi, Hoping I can get some help with this. I am using DialogService to show popup windows on a ContentPage and have an iOS Platform Dependency to show a loading wheel and toast on the DialogPage using the following code: Loading Wheel:
Toast:
Works fine on Android with the Android platform implementation but on iOS the Loading Wheel and Toast are shown behind the Dialog on the ContentPage. I can see this if I close the Dialog while the Loading Wheel and Toast are still visible. Presumably this is because the Dialog is not the KeyWindow or RootViewController. Any ideas about how to solve? Much appreciated in advance for any guidance. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Figured out the issue with the Loading Wheel is a timing issue in that it's called immediately within OnDialogOpened. Putting a short delay in OnDialogOpened before calling the Loading Wheel sorts this problem out. Still not sure about the Toast though. |
Beta Was this translation helpful? Give feedback.
-
https://github.com/andrius-k/Toast/tree/master/Toast The above package sorted out the toast issue. |
Beta Was this translation helpful? Give feedback.
Figured out the issue with the Loading Wheel is a timing issue in that it's called immediately within OnDialogOpened. Putting a short delay in OnDialogOpened before calling the Loading Wheel sorts this problem out. Still not sure about the Toast though.