2021-09-25 08:18:22 +00:00
|
|
|
import Defaults
|
2021-06-09 20:51:23 +00:00
|
|
|
import SwiftUI
|
|
|
|
|
|
|
|
@main
|
|
|
|
struct PearvidiousApp: App {
|
2021-10-24 09:16:04 +00:00
|
|
|
#if os(macOS)
|
|
|
|
@NSApplicationDelegateAdaptor(AppDelegate.self) var appDelegate
|
|
|
|
#endif
|
|
|
|
|
2021-06-09 20:51:23 +00:00
|
|
|
var body: some Scene {
|
|
|
|
WindowGroup {
|
|
|
|
ContentView()
|
|
|
|
}
|
2021-07-27 22:40:04 +00:00
|
|
|
#if !os(tvOS)
|
2021-10-24 12:31:10 +00:00
|
|
|
.handlesExternalEvents(matching: Set(["*"]))
|
2021-07-27 22:40:04 +00:00
|
|
|
.commands {
|
|
|
|
SidebarCommands()
|
2021-10-26 22:59:59 +00:00
|
|
|
CommandGroup(replacing: .newItem, addition: {})
|
2021-07-27 22:40:04 +00:00
|
|
|
}
|
|
|
|
#endif
|
2021-09-25 08:18:22 +00:00
|
|
|
|
|
|
|
#if os(macOS)
|
|
|
|
Settings {
|
|
|
|
SettingsView()
|
2021-10-05 20:20:09 +00:00
|
|
|
.environmentObject(InstancesModel())
|
2021-09-25 08:18:22 +00:00
|
|
|
}
|
|
|
|
#endif
|
|
|
|
}
|
2021-06-09 20:51:23 +00:00
|
|
|
}
|