← poker-tutor
import SwiftUI
import PokerUI
/// The iPhone and iPad app. Same `RootView` as the Mac, which lays itself out for the space it
/// gets — this file is the whole of the platform-specific code.
@main
struct PokerTutorPhoneApp: App {
@State private var app = AppState(variant: .pokerTutor)
@State private var splashDone = false
var body: some Scene {
WindowGroup {
ZStack {
RootView()
.environment(app)
// The free allowance and the App Store. Only the shipping apps switch this on:
// the suite and the command line play far more hands than anybody pays for.
.task { app.startCharging() }
if !splashDone {
AdLabSplash(done: $splashDone)
}
}
.preferredColorScheme(.dark)
}
}
}