From 39a86626e080313c91e8e0537372d024635c1cdd Mon Sep 17 00:00:00 2001 From: James Moschou Date: Thu, 14 May 2026 17:00:27 +0200 Subject: [PATCH] Only merge static count in _ViewListOutputs.concat if all outputs have a static count --- Sources/OpenSwiftUICore/View/Input/ViewList.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/OpenSwiftUICore/View/Input/ViewList.swift b/Sources/OpenSwiftUICore/View/Input/ViewList.swift index b1d9260ef..9dcb381e7 100644 --- a/Sources/OpenSwiftUICore/View/Input/ViewList.swift +++ b/Sources/OpenSwiftUICore/View/Input/ViewList.swift @@ -1530,8 +1530,8 @@ extension _ViewListOutputs { var fromIndex = 0 var mergedStaticCount: Int? = 0 for (index, output) in outputs.enumerated() { - if let staticCount = output.staticCount { - mergedStaticCount = (mergedStaticCount ?? 0) + staticCount + if let oldMergedStaticCount = mergedStaticCount, let staticCount = output.staticCount { + mergedStaticCount = oldMergedStaticCount + staticCount } else { mergedStaticCount = nil }