Explorar o código

fix: dictionary guard

Sam Jaffe hai 2 semanas
pai
achega
7e6f31a502
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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: {