We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 057ac4f commit 78ddea3Copy full SHA for 78ddea3
Sources/SwiftCrossUI/LayoutSystem.swift
@@ -67,9 +67,9 @@ public enum LayoutSystem {
67
// My thanks go to this great article for investigating and explaining
68
// how SwiftUI determines child view 'flexibility':
69
// https://www.objc.io/blog/2020/11/10/hstacks-child-ordering/
70
- let visibleChildrenCount = isHidden.count(where: { hidden in
+ let visibleChildrenCount = isHidden.filter { hidden in
71
!hidden
72
- })
+ }.count
73
let totalSpacing = max(visibleChildrenCount - 1, 0) * spacing
74
let proposedSizeWithoutSpacing = SIMD2(
75
proposedSize.x - (orientation == .horizontal ? totalSpacing : 0),
0 commit comments