1
0
mirror of https://github.com/yattee/yattee.git synced 2024-12-13 13:50:32 +05:30
yattee/Shared/PearvidiousApp.swift
2021-10-27 01:10:07 +02:00

30 lines
655 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()
CommandGroup(replacing: .newItem, addition: {})
}
#endif
#if os(macOS)
Settings {
SettingsView()
.environmentObject(InstancesModel())
}
#endif
}
}