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 abfaad4 commit 057ac4fCopy full SHA for 057ac4f
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 { hidden in
+ let visibleChildrenCount = isHidden.count(where: { hidden in
71
!hidden
72
- }
+ })
73
let totalSpacing = max(visibleChildrenCount - 1, 0) * spacing
74
let proposedSizeWithoutSpacing = SIMD2(
75
proposedSize.x - (orientation == .horizontal ? totalSpacing : 0),
0 commit comments