2021-12-27 22:33:27 +08:00
|
|
|
//
|
|
|
|
// PushDeerApp.swift
|
|
|
|
// PushDeer
|
|
|
|
//
|
|
|
|
// Created by HEXT on 2021/12/25.
|
|
|
|
//
|
|
|
|
|
|
|
|
import SwiftUI
|
|
|
|
|
|
|
|
@main
|
|
|
|
struct PushDeerApp: App {
|
2022-01-04 22:28:18 +08:00
|
|
|
@UIApplicationDelegateAdaptor(AppDelegate.self) var appDelegate
|
2022-01-15 22:13:23 +08:00
|
|
|
let store = AppState.shared
|
|
|
|
let persistenceController = PersistenceController.shared
|
2022-01-04 22:28:18 +08:00
|
|
|
|
2021-12-27 22:33:27 +08:00
|
|
|
var body: some Scene {
|
|
|
|
WindowGroup {
|
2022-01-15 22:13:23 +08:00
|
|
|
ContentView()
|
|
|
|
.environmentObject(store)
|
|
|
|
.environment(\.managedObjectContext, persistenceController.container.viewContext)
|
2021-12-27 22:33:27 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|