Created
October 20, 2022 23:24
-
-
Save ebubekirsezer/f288291c6025f4bf63237c43aeeb1fe1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// GitStarApp.swift | |
// GitStar | |
// | |
// Created by EbubekirSezer on 11.10.2022. | |
// | |
import SwiftUI | |
@main | |
struct GitStarApp: App { | |
@UIApplicationDelegateAdaptor(AppDelegate.self) var delegate | |
var body: some Scene { | |
WindowGroup { | |
NavigationView { | |
AppTabView() | |
} | |
.accentColor(.primary) | |
} | |
} | |
} | |
class AppDelegate: NSObject, UIApplicationDelegate { | |
func application(_ application: UIApplication, | |
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil) -> Bool { | |
RealmManager.service.migrate() | |
return true | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment