         
         return nil
     }
+    
+    func scrollViewDidScroll(_ scrollView: UIScrollView) {
+        // Display navigation/toolbar when scrolled to the bottom
+        guard scrollView.contentOffset.y >= (scrollView.contentSize.height - scrollView.frame.size.height) else { return }
+        navigationController?.setNavigationBarHidden(false, animated: true)
+        navigationController?.setToolbarHidden(false, animated: true)
+    }
 }
 
 // MARK: - Toolbar functions

import RealmSwift
import SystemConfiguration

class PostDetailViewController: UIViewController, WKNavigationDelegate, WKUIDelegate, StatusBarrable, Trackable {
    
    static var segueIdentifier = "PostDetailSegue"
    static var detailTemplateFile = "post.html"

        let webView = WKWebView(frame: self.view.bounds, configuration: configuration)
        webView.navigationDelegate = self
        webView.uiDelegate = self
        webView.scrollView.delegate = self
        
        self.view.addSubview(webView)
        
