Skip to content

Commit 057ac4f

Browse files
committed
Fix compilation error encountered by GitHub Actions macOS workflow
1 parent abfaad4 commit 057ac4f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/SwiftCrossUI/LayoutSystem.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ public enum LayoutSystem {
6767
// My thanks go to this great article for investigating and explaining
6868
// how SwiftUI determines child view 'flexibility':
6969
// https://www.objc.io/blog/2020/11/10/hstacks-child-ordering/
70-
let visibleChildrenCount = isHidden.count { hidden in
70+
let visibleChildrenCount = isHidden.count(where: { hidden in
7171
!hidden
72-
}
72+
})
7373
let totalSpacing = max(visibleChildrenCount - 1, 0) * spacing
7474
let proposedSizeWithoutSpacing = SIMD2(
7575
proposedSize.x - (orientation == .horizontal ? totalSpacing : 0),

0 commit comments

Comments
 (0)