Impressia/Vernissage/VernissageApp.swift

24 lines
605 B
Swift
Raw Normal View History

2022-12-28 09:37:16 +01:00
//
// https://mczachurski.dev
// Copyright © 2022 Marcin Czachurski and the repository contributors.
// Licensed under the MIT License.
//
import SwiftUI
@main
struct VernissageApp: App {
let persistenceController = PersistenceController.shared
2022-12-30 18:20:54 +01:00
2022-12-28 09:37:16 +01:00
var body: some Scene {
WindowGroup {
2022-12-29 17:27:15 +01:00
NavigationStack {
MainView()
.environment(\.managedObjectContext, persistenceController.container.viewContext)
2022-12-30 18:20:54 +01:00
.environmentObject(ApplicationState.shared)
2022-12-29 17:27:15 +01:00
}
.navigationViewStyle(.stack)
2022-12-28 09:37:16 +01:00
}
}
}