add events on mac

This commit is contained in:
neon443 committed 2025-06-13 22:00:28 +01:00
1 parent 0663ba9e59
commit 659f14d5a3
6 files changed
+27 -256

No files matched your search

+18
View File
@@ -11,6 +11,8 @@ struct ContentView: View {
@StateObject var viewModel: EventViewModel
@StateObject var settingsModel: SettingsViewModel
@State private var showAddEventView: Bool = false
var body: some View {
NavigationSplitView {
List {
@@ -52,6 +54,22 @@ struct ContentView: View {
WhatsNewView(settingsModel: settingsModel)
.presentationSizing(.form)
}
.sheet(isPresented: $showAddEventView) {
AddEventView(
viewModel: viewModel,
event: $viewModel.editableTemplate,
adding: true
)
.presentationSizing(.page)
}
.toolbar {
Button() {
showAddEventView.toggle()
} label: {
Image(systemName: "plus")
Text("New")
}
}
}
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.