perlasivakrishna edited a comment on issue #983:
URL: https://github.com/apache/cordova-ios/issues/983#issuecomment-687195815


   I have found the work around. Wkwebview delegates Overrided in my class.
   
   ```
   - (void)webView:(WKWebView *)webView didFinishNavigation:(WKNavigation 
*)navigation {
       [webView setHidden:NO];
       [self.view bringSubviewToFront:webView];
   }
   ```
   so I managed to do like this. Not sure is there any better way.  I have seen 
this piece of code where the webview is  getting hided. 
   
   ```
   - (void)createGapView
   {
       CGRect webViewBounds = self.view.bounds;
       webViewBounds.origin = self.view.bounds.origin;
   
       UIView* view = [self newCordovaViewWithFrame:webViewBounds];
       view.hidden = YES;
       view.autoresizingMask = (UIViewAutoresizingFlexibleWidth | 
UIViewAutoresizingFlexibleHeight);
   
       [self.view addSubview:view];
       [self.view sendSubviewToBack:view];
   }
   ```
   Also there is one more Empty view getting added to view hierarchy, not sure 
why it was getting added. 
   
   ![Screenshot 2020-09-04 at 8 00 27 
PM](https://user-images.githubusercontent.com/6779941/92252413-d4045380-eeeb-11ea-822e-3aa1c41dfa6f.png)
   
   If i need to change anything the way I'm handling webview, please suggest me.
    Thanks.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to