fix day count being wrong, minor updates

This commit is contained in:
neon443
2025-05-01 21:05:31 +01:00
parent 8ea1eda8f4
commit a08642bcb5
15 changed files with 87 additions and 28 deletions

View File

@@ -71,14 +71,12 @@ struct EventListView: View {
}
Spacer()
VStack {
Text("\(daysUntilEvent(event.date, short: false))")
Text("\(daysUntilEvent(event.date).long)")
.font(.subheadline)
.foregroundStyle(.one)
}
Button() {
withAnimation {
event.complete.toggle()
}
event.complete.toggle()
let eventToModify = viewModel.events.firstIndex() { currEvent in
currEvent.id == event.id
}