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

@@ -20,7 +20,7 @@ import UserNotifications
// }
//}
struct Event: Identifiable, Codable {
struct Event: Identifiable, Codable, Equatable {
var id = UUID()
var name: String
var complete: Bool
@@ -415,9 +415,20 @@ class EventViewModel: ObservableObject {
}
class dummyEventViewModel: EventViewModel {
var template2: Event
override init(load: Bool = false) {
self.template2 = Event(
name: "template2",
complete: false,
completeDesc: "",
symbol: "hammer",
color: ColorCodable(randomColor()),
notes: "notes",
date: Date(),
recurrence: .none
)
super.init(load: false)
self.events = [self.example, self.template, self.example, self.template]
self.events = [self.example, self.template, self.template2]
self.events[0].complete.toggle()
}
}