We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bed0565 commit 60ac4e7Copy full SHA for 60ac4e7
1 file changed
nativescript-core/ui/dialogs/dialogs.ios.ts
@@ -205,6 +205,11 @@ function showUIAlertController(alertController: UIAlertController) {
205
if (currentView) {
206
currentView = currentView.modal || currentView;
207
208
+ //get to the top most view controller on the stack
209
+ while (currentView && currentView.modal) {
210
+ currentView = currentView.modal;
211
+ }
212
+
213
let viewController: UIViewController = currentView.ios;
214
215
if (viewController.presentedViewController) {
0 commit comments