Skip to content

Commit 726701c

Browse files
committed
Fix active item count when DynamicLayoutMap has non-unary items
1 parent 74f1693 commit 726701c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/OpenSwiftUICore/Layout/Dynamic/DynamicLayoutMap.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ package struct DynamicLayoutMap {
8787
let lastActiveIndex = activeCount - 1
8888
if lastActiveIndex >= 0, !allUnary {
8989
let lastActiveItem = info.items[lastActiveIndex]
90-
activeCount &+= Int(lastActiveItem.count)
90+
activeCount = Int(lastActiveItem.count)
9191
}
9292
for index in 0 ..< activeCount {
9393
let targetIndex: Int

0 commit comments

Comments
 (0)