瀏覽代碼

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

Sam Jaffe 2 周之前
父節點
當前提交
2cd511298e
共有 1 個文件被更改,包括 1 次插入0 次删除
  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"