title: Resize IOS WKWebView when keyboard appears
body: <p>I would like to resize a WKWebView to fit above the keyboard in both landscape and portrait and to cope with user changing between landscape and portrait whilst the keyboard is in use. I would also like the WKWebView to be resized when the keyboard disappears.</p>
  
  <p>The default behaviour is to scroll the WKWebView so that the text field in use is visible above the keyboard. I want to override this behaviour.</p>
  
  <p>I expect that I will have to add some code to respond to keyboardDidShow and to keyboardDidHide, to change the GCRect used by the WebView. Are these the correct events to use?</p>
  
  <p>How do I access the height of the keyboard in both portrait and landscape?</p>
  
  <p>Do I have to add a delay to this, or will the default scrolling of the webview have already occurred by the time keyboardDidShow fires?</p>
  
  <p>When I change the webview GCRect size, will this trigger window.onresize in the javascript?</p>
  
  <p>Will doing this allow the device to be rotated whilst the keyboard is in use or do I need to add further code to handle this?</p>
  
  <p>Thanks for any help anyone can give me.</p>