From a596c0fcbe40d4315d0d601da8757e15e702c3a9 Mon Sep 17 00:00:00 2001 From: Gk40002148 Date: Mon, 9 May 2022 16:47:57 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=A6=E3=82=A3=E3=82=B8=E3=82=A7=E3=83=83?= =?UTF-8?q?=E3=83=88=E8=B5=B7=E5=8B=95=E6=99=82=E3=81=AB=E6=9B=B8=E9=A1=9E?= =?UTF-8?q?View=E3=81=8C=E8=A1=A8=E7=A4=BA=E3=81=95=E3=82=8C=E3=81=A6?= =?UTF-8?q?=E3=81=84=E3=82=8B=E5=A0=B4=E5=90=88=E3=81=AF=E3=80=81=E3=82=AF?= =?UTF-8?q?=E3=83=AD=E3=83=BC=E3=82=BA=E3=81=97=E3=81=A6=E3=81=8B=E3=82=89?= =?UTF-8?q?=E6=9B=B8=E9=A1=9E=E4=B8=80=E8=A6=A7=E3=82=92=E8=A1=A8=E7=A4=BA?= =?UTF-8?q?=E3=81=99=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AgileWorks/Main/Wireframe/MainTabBarViewWireframe.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/AgileWorks/AgileWorks/Main/Wireframe/MainTabBarViewWireframe.swift b/AgileWorks/AgileWorks/Main/Wireframe/MainTabBarViewWireframe.swift index f076f63..5978e88 100644 --- a/AgileWorks/AgileWorks/Main/Wireframe/MainTabBarViewWireframe.swift +++ b/AgileWorks/AgileWorks/Main/Wireframe/MainTabBarViewWireframe.swift @@ -38,6 +38,11 @@ extension MainTabBarViewWireframeImpl: MainTabBarViewWireframe { if alertCheck() { return } + // モーダルでViewが表示されているか。 + if let presentNavi = self.viewController.presentedViewController as? UINavigationController { + // 表示されている場合、閉じる + presentNavi.dismiss(animated: true, completion: nil) + } let workNum = 1 viewController.selectedIndex = workNum -- GitLab