- Three-scenario planning engine (A: date range, B: selected games, C: directional routes) - GeographicRouteExplorer with anchor game support for route exploration - Shared ItineraryBuilder for travel segment calculation - TravelEstimator for driving time/distance estimation - SwiftUI views for trip creation and detail display - CloudKit integration for schedule data - Python scraping scripts for sports schedules 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
40 lines
932 B
Swift
40 lines
932 B
Swift
//
|
|
// SportsTimeApp.swift
|
|
// SportsTime
|
|
//
|
|
// Created by Trey Tartt on 1/6/26.
|
|
//
|
|
|
|
import SwiftUI
|
|
import SwiftData
|
|
|
|
@main
|
|
struct SportsTimeApp: App {
|
|
var sharedModelContainer: ModelContainer = {
|
|
let schema = Schema([
|
|
SavedTrip.self,
|
|
TripVote.self,
|
|
UserPreferences.self,
|
|
CachedSchedule.self,
|
|
])
|
|
let modelConfiguration = ModelConfiguration(
|
|
schema: schema,
|
|
isStoredInMemoryOnly: false,
|
|
cloudKitDatabase: .none // Local only; CloudKit used separately for schedules
|
|
)
|
|
|
|
do {
|
|
return try ModelContainer(for: schema, configurations: [modelConfiguration])
|
|
} catch {
|
|
fatalError("Could not create ModelContainer: \(error)")
|
|
}
|
|
}()
|
|
|
|
var body: some Scene {
|
|
WindowGroup {
|
|
HomeView()
|
|
}
|
|
.modelContainer(sharedModelContainer)
|
|
}
|
|
}
|