[App] basic menu bar layout UI #2
@ -11,6 +11,9 @@ import SwiftData
|
||||
|
||||
@main
|
||||
struct PiperApp: App {
|
||||
|
||||
// MARK: Properties
|
||||
|
||||
var sharedModelContainer: ModelContainer = {
|
||||
let schema = Schema([
|
||||
Item.self,
|
||||
@ -23,11 +26,15 @@ struct PiperApp: App {
|
||||
fatalError("Could not create ModelContainer: \(error)")
|
||||
}
|
||||
}()
|
||||
|
||||
// MARK: Body
|
||||
|
||||
var body: some Scene {
|
||||
WindowGroup {
|
||||
ContentView()
|
||||
MenuBarExtra {
|
||||
EmptyView()
|
||||
} label: {
|
||||
Image(systemName: "circle.fill")
|
||||
}
|
||||
.modelContainer(sharedModelContainer)
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user