mirror of
https://github.com/somegeekintn/SimDirs.git
synced 2026-03-25 08:55:54 +00:00
36 lines
660 B
Swift
36 lines
660 B
Swift
//
|
|
// SimDirsApp.swift
|
|
// SimDirs
|
|
//
|
|
// Created by Casey Fleser on 5/23/22.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
@main
|
|
struct SimDirsApp: App {
|
|
private var simModel = SimModel()
|
|
|
|
var body: some Scene {
|
|
WindowGroup {
|
|
ContentView(model: simModel)
|
|
}
|
|
.windowStyle(.hiddenTitleBar)
|
|
.commands {
|
|
SimCommands()
|
|
}
|
|
}
|
|
}
|
|
|
|
struct SimCommands: Commands {
|
|
var body: some Commands {
|
|
SidebarCommands()
|
|
|
|
CommandMenu("Commands") {
|
|
Button("Command") {
|
|
print("Command")
|
|
}
|
|
.keyboardShortcut("f", modifiers: [.shift, .option])
|
|
}
|
|
}
|
|
}
|