how to use activity indicator in WKWebView in swift code example
Example: swift activity indicator
var activityIndicator = UIActivityIndicatorView(style: .Large)
activityIndicator.translatesAutoresizingMaskIntoConstraints = false
view.addSubview(activityIndicator)
activityIndicator.centerXAnchor.constraint(equalTo: view.centerXAnchor).isActive = true
activityIndicator.centerYAnchor.constraint(equalTo: view.centerYAnchor).isActive = true
activityIndicator.startAnimating()
activityIndicator.stopAnimating()