fix editing events on mac and ios

toolbar label()s instead of buton("label")s
fix event add/delete/tick animation
fix event complete progress on ios and mac and that it just spazzed out
browsing true for symbols browsing (not picking)
This commit is contained in:
neon443 committed 2025-06-15 21:18:58 +01:00
1 parent 0cffe243eb
commit 5ec16dd67a
9 files changed
+46 -30

No files matched your search

+3 -3
View File
@@ -40,11 +40,11 @@ struct CompleteEventButton: View {
let elapsed = Date().timeIntervalSince(completeStartTime)
progress = min(1, elapsed)
if progress > 1 {
timer.invalidate()
progress = 0
if progress >= 1 {
withAnimation { completeInProgress = false }
viewModel.completeEvent(&event)
timer.invalidate()
progress = 0
}
}
RunLoop.main.add(timer!, forMode: .common)
@@ -14,6 +14,7 @@ struct SymbolsPicker: View {
@FocusState var searchfocuesd: Bool
@State var searchInput: String = ""
@State var browsing: Bool = false
@Environment(\.dismiss) var dismiss
var symbols: [String] {
@@ -69,9 +70,13 @@ struct SymbolsPicker: View {
.searchable(text: $searchInput)
.toolbar {
ToolbarItem(placement: .cancellationAction) {
Button("Cancel") {
searchInput = ""
dismiss()
if !browsing {
Button() {
searchInput = ""
dismiss()
} label: {
Label("Cancel", systemImage: "xmark")
}
}
}
}
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.