fix "new edit event window" on mac not working

- it would save events with the same id and modify the previous one if u opened another one
add symbols to ios
date picker looks better mac
This commit is contained in:
neon443
2025-06-15 15:34:08 +01:00
parent 5dd25f1ede
commit 5c667679d5
10 changed files with 45 additions and 228 deletions

View File

@@ -65,9 +65,7 @@ struct ContentView: View {
}
.sheet(isPresented: $showAddEventView) {
AddEventView(
viewModel: viewModel,
event: $viewModel.editableTemplate,
adding: true
viewModel: viewModel
)
.presentationSizing(.page)
}
@@ -75,8 +73,7 @@ struct ContentView: View {
Button() {
showAddEventView.toggle()
} label: {
Image(systemName: "plus")
Text("New")
Label("New", systemImage: "plus")
}
}
}