Skip to content

Instantly share code, notes, and snippets.

@ebubekirsezer
Created October 20, 2022 23:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ebubekirsezer/f288291c6025f4bf63237c43aeeb1fe1 to your computer and use it in GitHub Desktop.
Save ebubekirsezer/f288291c6025f4bf63237c43aeeb1fe1 to your computer and use it in GitHub Desktop.
//
// 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