Skip to content

Commit 46b352f

Browse files
committed
getting ready for first release
1 parent 2dc097b commit 46b352f

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed
-113 KB
Loading

ios-pwa-wrapper/ViewController.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,12 @@ class ViewController: UIViewController {
5656

5757
// Observers for updating UI
5858
override func observeValue(forKeyPath keyPath: String?, of object: Any?, change: [NSKeyValueChangeKey : Any]?, context: UnsafeMutableRawPointer?) {
59+
/*
5960
if (keyPath == #keyPath(WKWebView.isLoading)) {
6061
// does not fire for PWAs if links are clicked
6162
// leftButton.isEnabled = webView.canGoBack
6263
}
64+
*/
6365
if (keyPath == #keyPath(WKWebView.estimatedProgress)) {
6466
progressBar.progress = Float(webView.estimatedProgress)
6567
rightButton.isEnabled = (webView.estimatedProgress == 1)

0 commit comments

Comments
 (0)