From 84a4652fb54cdbce48f38146e656e7f12673d9a6 Mon Sep 17 00:00:00 2001 From: Azuma Kasumi Date: Fri, 29 Jul 2022 16:42:02 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=8F=E3=83=B3=E3=83=90=E3=83=BC=E3=82=AC?= =?UTF-8?q?=E3=83=BC=E3=83=A1=E3=83=8B=E3=83=A5=E3=83=BC=E3=81=8C=E6=AE=8B?= =?UTF-8?q?=E3=81=A3=E3=81=A6=E3=81=84=E3=81=9F=E3=82=89=E9=96=89=E3=81=98?= =?UTF-8?q?=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AgileWorks/Main/View/MainTabBarViewController.swift | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/AgileWorks/AgileWorks/Main/View/MainTabBarViewController.swift b/AgileWorks/AgileWorks/Main/View/MainTabBarViewController.swift index 3c6ceb2..ba8feee 100644 --- a/AgileWorks/AgileWorks/Main/View/MainTabBarViewController.swift +++ b/AgileWorks/AgileWorks/Main/View/MainTabBarViewController.swift @@ -95,6 +95,13 @@ extension MainTabBarViewController: UITabBarControllerDelegate { // 選択した TabBarController のリロード if let navi = tabBarController.selectedViewController as? UINavigationController { if let webView = navi.viewControllers[navi.viewControllers.count - 1] as? WebViewController { + //ハンバーガーメニューが残っていたら閉じる + for vc in self.children { + let menu = vc.presentedViewController as? MenuViewController + if menu != nil { + menu?.closeView() + } + } webView.loadViewIfNeeded() webView.reloadWebView() } -- GitLab