title: How to vertically center the text in WKWebView?
body: <p>I am using WKWebView in my iOS (swift) app and i am using loadHTMLString(string, baseURL: ). Now the problem is that I want the HTML to be vertically centered in the frame. The text is variable in length. How can I do that?</p>
  
  <p>This is the screenshot of the HTML from Xcode:</p>
  
  <p><a href="https://i.stack.imgur.com/gs1Id.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gs1Id.png" alt="Figure 1"></a></p>
  
  <p>This is image of the output. The top HTML is on the upper side, I want it to be centrally aligned in its view (the view is 300 points from the top):</p>
  
  <p><a href="https://i.stack.imgur.com/LzUCK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LzUCK.png" alt="Figure 2"></a></p>