Fix swift optmize bug

This commit is contained in:
Kaede Akino committed 2026-08-29 11:48:03 +08:00
1 parent 69d966e969
commit 858f4a4d73
1 file changed
+4
@@ -958,6 +958,10 @@ where Item: Identifiable & Hashable & Sendable, Item.ID: Hashable {
self.rowHeight = rowHeight
}
// Swift 6.3.3's performance inliner crashes while synthesizing this
// generic class's optimized destructor. Keep only deinit unoptimized.
@_optimize(none) deinit {}
func makeListView() -> NSViewType {
let listView = NSViewType()
listView.rowAnimator = ListBouncyAnimator(style: .regular)