Search code examples
iosswiftwkwebview

WKWebView - content not rotating on device rotation


I am fairly new to iOS development and I'm using a WKWebView to render my website. But the problem is that on the device rotation, the content is not rotating. I am not sure whether I need to do any settings in my app or any script needs to be added.

Here is the screenshot.

Login Page

Any help will be appreciated.


Solution

  • Wkwebview is just another webview. I'd say you have to go Target Settings and check all the orientations. That'd do the job