yattee/Shared/PearvidiousApp.swift
2021-10-24 11:16:04 +02:00

29 lines
587 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()
}
.handlesExternalEvents(matching: Set(["*"]))
#if !os(tvOS)
.commands {
SidebarCommands()
}
#endif
#if os(macOS)
Settings {
SettingsView()
.environmentObject(InstancesModel())
}
#endif
}
}