Files
projectbutler/ProjectButler/Sources/ProjectButlerApp.swift

20 lines
429 B
Swift

import SwiftUI
@main
struct ProjectButlerApp: App {
@StateObject private var appState = AppState()
var body: some Scene {
MenuBarExtra("项目管家", systemImage: "tray.full.fill") {
MenuBarView()
.environmentObject(appState)
}
.menuBarExtraStyle(.window)
Settings {
SettingsView()
.environmentObject(appState)
}
}
}