From f84c6af2fe8e5bc831447e1b596f94f304f37a6b Mon Sep 17 00:00:00 2001 From: Jaden Geller Date: Mon, 26 Oct 2015 15:50:54 -0700 Subject: [PATCH] Swipe to go back --- Helium/Helium/WebViewController.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Helium/Helium/WebViewController.swift b/Helium/Helium/WebViewController.swift index bd6eaca..c853ba3 100644 --- a/Helium/Helium/WebViewController.swift +++ b/Helium/Helium/WebViewController.swift @@ -34,6 +34,9 @@ class WebViewController: NSViewController, WKNavigationDelegate { // Allow zooming webView.allowsMagnification = true + // Alow back and forth + webView.allowsBackForwardNavigationGestures = true + // Listen for load progress webView.addObserver(self, forKeyPath: "estimatedProgress", options: NSKeyValueObservingOptions.New, context: nil)