1

I have created a List using swiftUI

List(landmarkData, id: \.id) { landmark in
            LandmarkRow(landmark: landmark)
}

Is swifitUI List reuse cell?

Anuranjan Bose
  • 201
  • 1
  • 3
  • 16
Kishore Suthar
  • 2,943
  • 4
  • 26
  • 44
  • 2
    Does this answer your question? [Does the List in SwiftUI reuse cells similar to UITableView?](https://stackoverflow.com/questions/56655421/does-the-list-in-swiftui-reuse-cells-similar-to-uitableview) – vpoltave Nov 19 '19 at 10:33

1 Answers1

0

if you are using List it "automatically" reuses your "Row". This is not the case if you are using ScrollView -> ForEach

Chris
  • 7,579
  • 3
  • 18
  • 38