Skip to content

Commit

Permalink
Make Axis.Set Equatable to avoid infinite re-composing when used
Browse files Browse the repository at this point in the history
as a Preference, which we do for some Lazy stacks and grids
  • Loading branch information
aabewhite committed Sep 6, 2024
1 parent b9f81e6 commit a383a61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/SkipUI/SkipUI/Layout/Axis.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit a383a61

Please sign in to comment.