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.
2 parents 0fd08fd + a0c7233 commit d7daf99Copy full SHA for d7daf99
src/ios/SafariViewController.m
@@ -109,6 +109,14 @@ - (UIColor *)colorFromHexString:(NSString *)hexString {
109
}
110
111
- (void) hide:(CDVInvokedUrlCommand*)command {
112
+ SFSafariViewController *childVc = [self.viewController.childViewControllers lastObject];
113
+ if (childVc != nil) {
114
+ [childVc willMoveToParentViewController:nil];
115
+ [childVc.view removeFromSuperview];
116
+ [childVc removeFromParentViewController];
117
+ childVc = nil;
118
+ }
119
+
120
if (vc != nil) {
121
[vc dismissViewControllerAnimated:self.animated completion:nil];
122
vc = nil;
0 commit comments