Files
MLBApp/mlbIOS/mlbIOSApp.swift
Trey t fda809fd2f Add iOS/iPad target with platform-adaptive UI
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 21:30:28 -05:00

27 lines
527 B
Swift

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)")
}
}
}