Add iOS/iPad target with platform-adaptive UI

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Trey t
2026-03-30 21:30:28 -05:00
parent 127125ae1b
commit fda809fd2f
21 changed files with 851 additions and 129 deletions

26
mlbIOS/mlbIOSApp.swift Normal file
View File

@@ -0,0 +1,26 @@
import AVFoundation
import SwiftUI
@main
struct mlbIOSApp: App {
@State private var viewModel = GamesViewModel()
init() {
configureAudioSession()
}
var body: some Scene {
WindowGroup {
mlbIOSRootView()
.environment(viewModel)
}
}
private func configureAudioSession() {
do {
try AVAudioSession.sharedInstance().setCategory(.ambient)
} catch {
print("Failed to set audio session: \(error)")
}
}
}