mirror of
https://github.com/yattee/yattee.git
synced 2024-12-22 21:43:41 +00:00
29 lines
591 B
Swift
29 lines
591 B
Swift
import Defaults
|
|
import SwiftUI
|
|
|
|
@main
|
|
struct PearvidiousApp: App {
|
|
#if os(macOS)
|
|
@NSApplicationDelegateAdaptor(AppDelegate.self) var appDelegate
|
|
#endif
|
|
|
|
var body: some Scene {
|
|
WindowGroup {
|
|
ContentView()
|
|
}
|
|
#if !os(tvOS)
|
|
.handlesExternalEvents(matching: Set(["*"]))
|
|
.commands {
|
|
SidebarCommands()
|
|
}
|
|
#endif
|
|
|
|
#if os(macOS)
|
|
Settings {
|
|
SettingsView()
|
|
.environmentObject(InstancesModel())
|
|
}
|
|
#endif
|
|
}
|
|
}
|