From 16b8a44a30fc2a504af0d6a5661779a153628a73 Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Mon, 29 Apr 2019 17:50:03 +0200 Subject: [PATCH] Hide bars on tap within debug log view --- .../Scenes/DebugLogViewController.swift | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Passepartout-iOS/Scenes/DebugLogViewController.swift b/Passepartout-iOS/Scenes/DebugLogViewController.swift index f7b8c869..22600797 100644 --- a/Passepartout-iOS/Scenes/DebugLogViewController.swift +++ b/Passepartout-iOS/Scenes/DebugLogViewController.swift @@ -58,6 +58,20 @@ class DebugLogViewController: UIViewController { } } + override func viewWillAppear(_ animated: Bool) { + super.viewWillAppear(animated) + + navigationController?.isToolbarHidden = false + navigationController?.hidesBarsOnTap = true + } + + override func viewWillDisappear(_ animated: Bool) { + super.viewWillDisappear(animated) + + navigationController?.isToolbarHidden = true + navigationController?.hidesBarsOnTap = false + } + // MARK: Actions @IBAction private func share(_ sender: Any?) {