Posts

Post not yet marked as solved
1 Replies
670 Views
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.
Posted
by SRBD.
Last updated
.
Post not yet marked as solved
0 Replies
1.4k Views
I have to set the URL headers in the web request made by SFSafriViewController. But i did not find any workaround for this.I only have found a function "initWithURL:(NSURL* URL)" but there is no way to add URL header.I know, it can be done using WKWebView(URLRequest) but i want to do it using SFSafriViewController.is there any workaround to do this?
Posted
by SRBD.
Last updated
.