Skip to content

Commit 6aee157

Browse files
pookjwKyle-Ye
andauthored
Fix incorrect index update in updateItems (#691)
Co-authored-by: Kyle <[email protected]>
1 parent 874ef85 commit 6aee157

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/OpenSwiftUICore/Layout/Dynamic/DynamicContainer.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -611,10 +611,10 @@ struct DynamicContainerInfo<Adapter>: StatefulRule, AsyncAttribute, ObservedAttr
611611
let zIndex = infoItem.zIndex
612612
hasDepth = hasDepth || (zIndex != 0)
613613
if zIndex != info.items[target].zIndex {
614-
info.items[target].zIndex = zIndex
614+
info.items[index].zIndex = zIndex // Weird. No-op actually.
615615
changed = true
616616
}
617-
if phase != info.items[target].phase {
617+
if phase != info.items[index].phase {
618618
changed = true
619619
}
620620
}

0 commit comments

Comments
 (0)