Post

Replies

Boosts

Views

Activity

How to kill UIKeyboradWindowScene after closing SFSafariViewController?
When I launched my application, in debug view hierarchy there was only UIWindowScene - (Foreground active).I loaded a webpage using the following code: NSURL *url = [[NSURL alloc] initWithString: @"https://apple.com"]; SFSafariViewController *view = [[SFSafariViewController alloc] initWithURL:url]; [self presentViewController:view animated:YES completion:^{ NSLog(@"Successfully opened web browser for %@ action.", @"sample"); }];Then closed the webpage using "Done" option. Now, in the debug view hierarchy there are two window scenes. They are 1. UIWindowScene - (Foreground active) 2. _UIKeyboardWindowScene- (Foreground active). Is this a bug of SFSafariviewController? How to fix this problem, please? It is blocking our toaster view in the application.P.S. If I use WKWebView, then the second window scene does not exist in the debug view hierarchy.
1
0
771
Feb ’20