[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
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")
}
}
}