mirror of
https://github.com/yattee/yattee.git
synced 2024-11-14 01:58:24 +00:00
30 lines
650 B
Swift
30 lines
650 B
Swift
import Defaults
|
|
import SwiftUI
|
|
|
|
@main
|
|
struct YatteeApp: App {
|
|
#if os(macOS)
|
|
@NSApplicationDelegateAdaptor(AppDelegate.self) var appDelegate
|
|
#endif
|
|
|
|
var body: some Scene {
|
|
WindowGroup {
|
|
ContentView()
|
|
}
|
|
#if !os(tvOS)
|
|
.handlesExternalEvents(matching: Set(["*"]))
|
|
.commands {
|
|
SidebarCommands()
|
|
CommandGroup(replacing: .newItem, addition: {})
|
|
}
|
|
#endif
|
|
|
|
#if os(macOS)
|
|
Settings {
|
|
SettingsView()
|
|
.environmentObject(InstancesModel())
|
|
}
|
|
#endif
|
|
}
|
|
}
|