Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Commit 4f90d7a

Browse files
authored
[ios] Telemetry button in modal view controllers (#9027)
Fixes #8980.
1 parent 30b9191 commit 4f90d7a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

platform/ios/src/MGLMapView.mm

+4-3
Original file line numberDiff line numberDiff line change
@@ -1999,9 +1999,10 @@ - (void)presentTelemetryAlertController
19991999
}];
20002000
[alertController addAction:participateAction];
20012001

2002-
[self.window.rootViewController presentViewController:alertController
2003-
animated:YES
2004-
completion:NULL];
2002+
UIViewController *viewController = [self.window.rootViewController mgl_topMostViewController];
2003+
[viewController presentViewController:alertController
2004+
animated:YES
2005+
completion:NULL];
20052006
}
20062007

20072008
#pragma mark - Properties -

0 commit comments

Comments
 (0)