Sesame-iOS/Sesame/SesameApp.swift
2023-12-27 21:57:17 +01:00

21 lines
381 B
Swift

import SwiftUI
import SwiftData
@main
struct SesameApp: App {
@State
var modelContainer: ModelContainer
init() {
self.modelContainer = SesameApp.loadModelContainer()
}
var body: some Scene {
WindowGroup {
ContentView(modelContext: modelContainer.mainContext)
}
.modelContainer(modelContainer)
}
}