What’s the difference if we write
myArray is a object of strict which has only two items An id and name
List(self.myArray, id: \.id) { currentArray in
....
}
And
List {
ForEach(self.myArray, id: \.id) { currentArray in
......
}
}
myArray is a object of strict which has only two items An id and name
List(self.myArray, id: \.id) { currentArray in
....
}
And
List {
ForEach(self.myArray, id: \.id) { currentArray in
......
}
}