← poker-tutor
Sources/PokerTutorCashApp/PokerTutorCashApp.swift
745 bytes
Download file
import SwiftUI
import PokerUI
import PokerSession
/// The Mac cash app: a window with `RootView` in it, told it is the cash product. Everything
/// else lives in `PokerUI`, exactly as for the tournament app.
@main
struct PokerTutorCashMacApp: App {
@State private var app = AppState(variant: .pokerTutorCash)
var body: some Scene {
WindowGroup(AppVariant.pokerTutorCash.displayName) {
RootView()
.environment(app)
.frame(minWidth: 900, minHeight: 640)
.preferredColorScheme(.dark)
.task { app.startCharging() }
}
#if os(macOS)
.windowStyle(.hiddenTitleBar)
.defaultSize(width: 1240, height: 820)
#endif
}
}