diff --git a/Sources/OpenSwiftUICore/Layout/Alignment/AlignmentGuide.swift b/Sources/OpenSwiftUICore/Layout/Alignment/AlignmentGuide.swift index 0dae8a3c5..9561f6de2 100644 --- a/Sources/OpenSwiftUICore/Layout/Alignment/AlignmentGuide.swift +++ b/Sources/OpenSwiftUICore/Layout/Alignment/AlignmentGuide.swift @@ -1255,7 +1255,7 @@ public struct AlignmentKey: Hashable, Comparable { return index } } - bits = (axis == .horizontal ? 0 : 1) + (index + 1) * 2 + bits = ((index << 1) | (axis == .horizontal ? 0 : 1)) &+ 2 } package init() { bits = .zero }