Skip to content

Commit

Permalink
Fix child layout order for stack layouts (accidentally had it backwards)
Browse files Browse the repository at this point in the history
  • Loading branch information
stackotter committed Sep 23, 2024
1 parent b57bd61 commit 8aa6cf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/SwiftCrossUI/LayoutSystem.swift
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public enum LayoutSystem {
}
}
let sortedChildren = zip(children.enumerated(), minimumSizes).sorted { first, second in
first.1 <= second.1
first.1 >= second.1
}.map(\.0)

for (index, child) in sortedChildren {
Expand Down

0 comments on commit 8aa6cf5

Please sign in to comment.