Browse Source

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

Sam Jaffe 2 tuần trước cách đây
mục cha
commit
2cd511298e
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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"