tring to ad animations

This commit is contained in:
neon443
2025-05-12 17:26:37 +01:00
parent da65c3ac69
commit 025dbf22cd
7 changed files with 209 additions and 172 deletions

View File

@@ -75,7 +75,7 @@ struct EventListView: View {
VStack {
Text("\(daysUntilEvent(event.date).long)")
.font(.subheadline)
.foregroundStyle(.one)
.foregroundStyle(event.date.timeIntervalSinceNow < 0 ? .red : .one)
}
Button() {
withAnimation {
@@ -112,6 +112,7 @@ struct EventListView: View {
.shadow(radius: 5)
.padding(.trailing, 5)
}
.transition(.opacity)
.padding(.vertical, 5)
.background(.ultraThinMaterial)
.overlay(