Replaced the main window for the PiperApp app in the Piper target with a menu bar.

This commit is contained in:
Javier Cicchelli 2024-10-04 23:23:57 +02:00
parent fc974787e8
commit a2d46fc0ea

View File

@ -11,6 +11,9 @@ import SwiftData
@main
struct PiperApp: App {
// MARK: Properties
var sharedModelContainer: ModelContainer = {
let schema = Schema([
Item.self,
@ -24,10 +27,14 @@ struct PiperApp: App {
}
}()
// MARK: Body
var body: some Scene {
WindowGroup {
ContentView()
MenuBarExtra {
EmptyView()
} label: {
Image(systemName: "circle.fill")
}
.modelContainer(sharedModelContainer)
}
}