Skip to content

Commit

Permalink
getting ready for first release
Browse files Browse the repository at this point in the history
  • Loading branch information
xtools-at committed Nov 5, 2017
1 parent 2dc097b commit 46b352f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions ios-pwa-wrapper/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,12 @@ class ViewController: UIViewController {

// Observers for updating UI
override func observeValue(forKeyPath keyPath: String?, of object: Any?, change: [NSKeyValueChangeKey : Any]?, context: UnsafeMutableRawPointer?) {
/*
if (keyPath == #keyPath(WKWebView.isLoading)) {
// does not fire for PWAs if links are clicked
// leftButton.isEnabled = webView.canGoBack
}
*/
if (keyPath == #keyPath(WKWebView.estimatedProgress)) {
progressBar.progress = Float(webView.estimatedProgress)
rightButton.isEnabled = (webView.estimatedProgress == 1)
Expand Down

0 comments on commit 46b352f

Please sign in to comment.