WebView Should not cover entire screen (Not showing navigation bar using navigation controller )

337 Views Asked by At

When I load web view it is covering the entire screen

it is not displaying the navigation bar using a

navigation controller

How to display a web view with navigation bar using a navigation

controller without covering the whole screen

Chatter Webview:

@IBOutlet var chatterWebView: WKWebView?

Loading WebView :

 let webConfiguration = WKWebViewConfiguration()

chatterWebView = WKWebView(frame: .zero, configuration: webConfiguration)

chatterWebView!.uiDelegate = self

 view = chatterWebView

URL Request :

chatterWebView!.load(request as URLRequest)

Navigation bar:

self.navigationController?.navigationBar.isHidden = false

https://i.stack.imgur.com/ZjSye.png

this is the image which is populating, covering the entire screen. It should fit the view controller

I have given the constraints also

0

There are 0 best solutions below