Is there a way to get the percentage of the page loaded from a UIWebView
in Swift with from a standard @IBOutlet
?
@IBOutlet var webView: UIWebView!;
Not with a UIWebView, no; it isn't possible.
But, new in iOS 8, you can use WKWebView, which has an estimatedProgress
property which you can observe using key-value observing and thus get updates as the progress of loading proceeds.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With