Skip to content

Commit

Permalink
[Feat] #101 - 앱 진입점에 Firebase 코드 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
Genesis2010 committed Aug 7, 2024
1 parent dfd8946 commit 740ba85
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Treehouse/Treehouse/Application/TreehouseApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,21 @@

import SwiftUI
import SwiftData
import FirebaseCore

class AppDelegate: NSObject, UIApplicationDelegate {
func application(_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool {
FirebaseApp.configure()

return true
}
}

@main
struct TreehouseApp: App {

@UIApplicationDelegateAdaptor(AppDelegate.self) var delegate
@State var viewRouter = ViewRouter()
@AppStorage(Config.loginKey) private var isLogin = false

Expand Down

0 comments on commit 740ba85

Please sign in to comment.