Parcourir la source

fix?: add UUID to Project() in the hopes that it prevents dictionary errors...

Sam Jaffe il y a 2 semaines
Parent
commit
2cd511298e
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      Todos/Model/Project.swift

+ 1 - 0
Todos/Model/Project.swift

@@ -13,6 +13,7 @@ import SwiftUI
 final class Project: Codable, Ordered, Aggregate {
   typealias Element = Task
 
+  var uuid: UUID = UUID()
   var sortOrder: Int = 0
   var timestamp: Date
   var name: String = "New Project"