Skip to content

Commit 2b3441a

Browse files
pookjwKyle-Ye
andauthored
Update allUnary logic (#693)
Co-authored-by: Kyle <kyle201817146@gmail.com>
1 parent 7240b21 commit 2b3441a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/OpenSwiftUICore/Layout/Dynamic/DynamicContainer.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,9 +378,9 @@ struct DynamicContainerInfo<Adapter>: StatefulRule, AsyncAttribute, ObservedAttr
378378
info.indexMap[item.uniqueId] = index
379379
item.precedingViewCount = precedingCount
380380
allUnary = allUnary && item.viewCount == 1
381-
info.allUnary = allUnary
382381
precedingCount &+= item.viewCount
383382
}
383+
info.allUnary = allUnary
384384
}
385385
precondition(info.indexMap.count == inusedCount, "DynamicLayoutItem identifiers must be unique.")
386386
if hasDepth {

0 commit comments

Comments
 (0)