[App] basic menu bar layout UI #2

Merged
javier merged 6 commits from app/menu-bar-ui into main 2024-10-04 22:18:56 +00:00
Showing only changes of commit a2d46fc0ea - Show all commits

View File

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