From a383a613ee250bbbabf16a0f01326c7cde61745b Mon Sep 17 00:00:00 2001 From: Abe White Date: Thu, 5 Sep 2024 23:13:01 -0500 Subject: [PATCH] Make Axis.Set Equatable to avoid infinite re-composing when used as a Preference, which we do for some Lazy stacks and grids --- Sources/SkipUI/SkipUI/Layout/Axis.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/SkipUI/SkipUI/Layout/Axis.swift b/Sources/SkipUI/SkipUI/Layout/Axis.swift index d529503f..0f9a5c55 100644 --- a/Sources/SkipUI/SkipUI/Layout/Axis.swift +++ b/Sources/SkipUI/SkipUI/Layout/Axis.swift @@ -8,7 +8,7 @@ public enum Axis : Int, Hashable, CaseIterable, Sendable { case horizontal = 1 case vertical = 2 - public struct Set : OptionSet, Sendable { + public struct Set : OptionSet, Hashable, Sendable { public let rawValue: Int public init(rawValue: Int) {