2021-09-25 13:48:22 +05:30
|
|
|
import Defaults
|
2021-06-10 02:21:23 +05:30
|
|
|
import SwiftUI
|
|
|
|
|
|
|
|
@main
|
|
|
|
struct PearvidiousApp: App {
|
2021-10-24 14:46:04 +05:30
|
|
|
#if os(macOS)
|
|
|
|
@NSApplicationDelegateAdaptor(AppDelegate.self) var appDelegate
|
|
|
|
#endif
|
|
|
|
|
2021-06-10 02:21:23 +05:30
|
|
|
var body: some Scene {
|
|
|
|
WindowGroup {
|
|
|
|
ContentView()
|
|
|
|
}
|
2021-10-24 14:46:04 +05:30
|
|
|
.handlesExternalEvents(matching: Set(["*"]))
|
2021-07-28 04:10:04 +05:30
|
|
|
#if !os(tvOS)
|
|
|
|
.commands {
|
|
|
|
SidebarCommands()
|
|
|
|
}
|
|
|
|
#endif
|
2021-09-25 13:48:22 +05:30
|
|
|
|
|
|
|
#if os(macOS)
|
|
|
|
Settings {
|
|
|
|
SettingsView()
|
2021-10-06 01:50:09 +05:30
|
|
|
.environmentObject(InstancesModel())
|
2021-09-25 13:48:22 +05:30
|
|
|
}
|
|
|
|
#endif
|
|
|
|
}
|
2021-06-10 02:21:23 +05:30
|
|
|
}
|