class SSOViewController: UIViewController, UIWebViewDelegate
{
@IBOutlet weak var ssoWebView: UIWebView!
var activityData : ActivityData!
var ssoUrl: String!
override func viewDidLoad()
{
    super.viewDidLoad()
    activityData = ActivityData()
    ssoWebView.delegate = self
    ssoWebView.loadRequest(URLRequest(url: URL(string: ssoUrl)!) )
}
override func didReceiveMemoryWarning()
{
    super.didReceiveMemoryWarning()
}
func webViewDidStartLoad(_ webView: UIWebView)
{
    NVActivityIndicatorView.DEFAULT_BLOCKER_SIZE = CGSize(width: 45, height: 45)
    NVActivityIndicatorPresenter.sharedInstance.startAnimating(activityData)
}
func webViewDidFinishLoad(_ webView: UIWebView)
{
    //NVActivityIndicatorPresenter.sharedInstance.stopAnimating()
}
func webView(_ webView: UIWebView, shouldStartLoadWith request: URLRequest, navigationType: UIWebViewNavigationType) -> Bool
{
    print(request.mainDocumentURL ?? "no url")
    return false
}
}
This is what I did to load the content into the webview and in webViewDidStartLoad method and webViewDidFinishLoad method just added activity indicator. Those two methods are not firing up either.
 
     
    
