From 9471652c771de5554f92ed143be354d094507e67 Mon Sep 17 00:00:00 2001 From: Kyle Date: Thu, 1 Jan 2026 23:37:42 +0800 Subject: [PATCH] Update allUnary logic --- Sources/OpenSwiftUICore/Layout/Dynamic/DynamicContainer.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/OpenSwiftUICore/Layout/Dynamic/DynamicContainer.swift b/Sources/OpenSwiftUICore/Layout/Dynamic/DynamicContainer.swift index 216f0a3a5..22832941e 100644 --- a/Sources/OpenSwiftUICore/Layout/Dynamic/DynamicContainer.swift +++ b/Sources/OpenSwiftUICore/Layout/Dynamic/DynamicContainer.swift @@ -378,9 +378,9 @@ struct DynamicContainerInfo: StatefulRule, AsyncAttribute, ObservedAttr info.indexMap[item.uniqueId] = index item.precedingViewCount = precedingCount allUnary = allUnary && item.viewCount == 1 - info.allUnary = allUnary precedingCount &+= item.viewCount } + info.allUnary = allUnary } precondition(info.indexMap.count == inusedCount, "DynamicLayoutItem identifiers must be unique.") if hasDepth {