Initial commit

This commit is contained in:
Trey t
2026-03-26 15:37:31 -05:00
commit bae265b132
41 changed files with 8596 additions and 0 deletions

28
mlbTVOS/mlbTVOSApp.swift Normal file
View File

@@ -0,0 +1,28 @@
import AVFoundation
import SwiftUI
@main
struct mlbTVOSApp: App {
@State private var viewModel = GamesViewModel()
init() {
configureAudioSession()
}
var body: some Scene {
WindowGroup {
ContentView()
.environment(viewModel)
}
}
private func configureAudioSession() {
// Start with .ambient so we don't interrupt other audio on launch
// Switch to .playback when user starts a stream
do {
try AVAudioSession.sharedInstance().setCategory(.ambient)
} catch {
print("Failed to set audio session: \(error)")
}
}
}