Replaced the main window for the PiperApp app in the Piper target with a menu bar.
This commit is contained in:
parent
fc974787e8
commit
a2d46fc0ea
@ -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()
|
||||
}
|
||||
.modelContainer(sharedModelContainer)
|
||||
MenuBarExtra {
|
||||
EmptyView()
|
||||
} label: {
|
||||
Image(systemName: "circle.fill")
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user