From 2599a5095e03fb05501d87ed9fc0597aa5891d2d Mon Sep 17 00:00:00 2001 From: dlrjswns Date: Thu, 13 Aug 2026 21:10:18 +0900 Subject: [PATCH] =?UTF-8?q?[FEAT]=20=EC=8A=A4=EC=99=80=EC=9D=B4=ED=94=84?= =?UTF-8?q?=20=EB=B0=B1=20=EC=A0=9C=EC=8A=A4=EC=B2=98=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- GAMSS/Sources/App/GAMSSApp.swift | 30 +++++++++++++++++++++++------- 1 file changed, 23 insertions(+), 7 deletions(-) diff --git a/GAMSS/Sources/App/GAMSSApp.swift b/GAMSS/Sources/App/GAMSSApp.swift index 8d9e395..e6848b6 100644 --- a/GAMSS/Sources/App/GAMSSApp.swift +++ b/GAMSS/Sources/App/GAMSSApp.swift @@ -9,12 +9,12 @@ import SwiftUI import FirebaseCore class AppDelegate: NSObject, UIApplicationDelegate { - func application(_ application: UIApplication, - didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool { - FirebaseApp.configure() - - return true - } + func application(_ application: UIApplication, + didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool { + FirebaseApp.configure() + + return true + } } @main @@ -24,10 +24,26 @@ struct GAMSSApp: App { var body: some Scene { WindowGroup { RootView() - .preferredColorScheme(.light) + .preferredColorScheme(.light) } // 디자인 토큰이 다크모드 값을 갖고 있지만 디자이너가 아직 다크모드 화면을 설계하지 // 않았다 — 시스템 다크모드를 그대로 따라가면 색상이 라이트/다크 목적과 반대로 // 뒤집혀 보이므로 앱 전체를 라이트 모드로 고정한다. } } + +// - MARK: 네비게이션 뒤로가기 제스처 +extension UINavigationController: UIGestureRecognizerDelegate { + override public func viewDidLoad() { + super.viewDidLoad() + interactivePopGestureRecognizer?.delegate = self + } + + public func gestureRecognizerShouldBegin(_ gestureRecognizer: UIGestureRecognizer) -> Bool { + return viewControllers.count > 1 + } + + public func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldBeRequiredToFailBy otherGestureRecognizer: UIGestureRecognizer) -> Bool { + return gestureRecognizer.isEqual(self.interactivePopGestureRecognizer) + } +}