Added some more normal calendar places, played with the day and calendar view

This commit is contained in:
2024-01-13 13:11:23 +01:00
parent f7a0d5edc8
commit 20f62d86db
4 changed files with 35 additions and 23 deletions

View File

@@ -29,7 +29,8 @@ struct TrashModel {
Trash(type: "plastic", color: .orange, image: "waterbottle"),
Trash(type: "paper", color: .blue, image: "newspaper"),
Trash(type: "bio", color: .green, image: "tree"),
Trash(type: "residual", color: .gray, image: "trash")
Trash(type: "residual", color: .gray, image: "trash"),
Trash(type: "none", color: .white, image: "")
]
self.trashEvents = []
@@ -80,8 +81,8 @@ struct TrashModel {
self.trashEvents.append(
TrashEvent(
id: i,
trash: self.trashTypes[3],
date: Calendar.current.date(byAdding: .day, value: 6 + 7 + 7*i, to: Date())!
trash: self.trashTypes[4],
date: Calendar.current.date(byAdding: .day, value: 3 + 7 + 7*i, to: Date())!
)
)
}