Sfoglia il codice sorgente

fix: dictionary guard

Sam Jaffe 2 settimane fa
parent
commit
7e6f31a502
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      Todos/View/ContentView.swift

+ 1 - 1
Todos/View/ContentView.swift

@@ -19,7 +19,7 @@ struct ContentView: View {
   var body: some View {
     NavigationSplitView {
       List(selection: $selection) {
-        ForEach(items, id: \.self) { item in
+        ForEach(items, id: \.uuid) { item in
           NavigationLink(value: item) {
             Text(item.name)
           }.swipeActions(content: {