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 {