Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 23 additions & 7 deletions GAMSS/Sources/App/GAMSSApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
}
}
Loading