Files
simslim-mirror/gui/SimSlimApp.swift
jpancotti d566c616dc Add the SimSlim macOS app and simulator management tools (#2)
* Expand simulator management and disk tooling

* Add the SimSlim macOS app

* Document and verify the macOS workflow
2026-07-21 09:28:54 +02:00

28 lines
653 B
Swift

import SwiftUI
@main
struct SimSlimApp: App {
@StateObject private var model = AppModel()
var body: some Scene {
WindowGroup {
ContentView()
.environmentObject(model)
.frame(minWidth: 1080, minHeight: 700)
.task { await model.load() }
}
.defaultSize(width: 1260, height: 820)
.windowStyle(.titleBar)
.windowToolbarStyle(.unified(showsTitle: false))
.commands {
CommandGroup(after: .toolbar) {
Button("Refresh Simulators") {
Task { await model.refresh() }
}
.keyboardShortcut("r", modifiers: .command)
.disabled(model.isBusy)
}
}
}
}