animations make me wanna kms

animations!!!!!!!!! on add, delete and ticking yayy
sorts on load
extract contentview to HomeView, its got too indented loll
This commit is contained in:
neon443
2025-05-12 19:24:34 +01:00
parent 025dbf22cd
commit 7bef3bc4e6
17 changed files with 183 additions and 154 deletions

View File

@@ -2,7 +2,7 @@
// Item.swift
// NearFuture
//
// Created by Nihaal Sharma on 24/12/2024.
// Created by neon443 on 24/12/2024.
//
import Foundation
@@ -20,7 +20,7 @@ import UserNotifications
// }
//}
struct Event: Identifiable, Codable, Equatable {
struct Event: Identifiable, Codable, Equatable, Animatable {
var id = UUID()
var name: String
var complete: Bool
@@ -227,6 +227,7 @@ class EventViewModel: ObservableObject {
}
}
updateSyncStatus()
self.events.sort() {$0.date < $1.date}
}
func getNotifs() async -> [UNNotificationRequest] {