Skip to content

Commit 2dfaaee

Browse files
committed
Fix bug when layoutPriority values are equal
1 parent eece8ed commit 2dfaaee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/OpenSwiftUICore/Layout/Stack/StackLayout.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ extension StackLayout {
675675
for index in childrenPtr.indices.reversed() {
676676
let fittingOrder = fittingOrderPtr[index]
677677
guard priorityPtr[fittingOrder] != firstPriority else {
678-
continue
678+
return
679679
}
680680
guard majorAxisRangeCachePtr[fittingOrder].min == nil else {
681681
continue

0 commit comments

Comments
 (0)