Files
workouts/Workouts/WorkoutsApp.swift
2025-07-25 17:42:25 -04:00

34 lines
661 B
Swift
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// WorkoutsApp.swift
// Workouts
//
// Created by rzen on 7/11/25 at 5:04PM.
//
// Copyright 2025 Rouslan Zenetl. All Rights Reserved.
//
import SwiftUI
import SwiftData
@main
struct WorkoutsApp: App {
let container: ModelContainer
init() {
var shouldCreateDefaults = false
self.container = WorkoutsContainer.create(shouldCreateDefaults: &shouldCreateDefaults)
if shouldCreateDefaults {
InitialData.create(modelContext: ModelContext(container))
}
}
var body: some Scene {
WindowGroup {
ContentView()
}
.modelContainer(container)
}
}