Skip to content

Commit f347475

Browse files
committed
Revert changes for Xcode 15
1 parent cd733cd commit f347475

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

Sources/CompactSlider/CompactSlider.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public struct CompactSlider<Value: BinaryFloatingPoint, Point: CompactSliderPoin
135135
@Environment(\.compactSliderAnimations) var animations
136136
@Environment(\.compactSliderOnChangeAction) var onChangeAction
137137
#if os(macOS)
138-
@Environment(\.controlActiveState) var activeState
138+
@Environment(\.appearsActive) var appearsActive
139139
#endif
140140

141141
let bounds: ClosedRange<Value>
@@ -202,7 +202,7 @@ public struct CompactSlider<Value: BinaryFloatingPoint, Point: CompactSliderPoin
202202
return configuration
203203
}())
204204
#if os(macOS)
205-
.saturation(activeState == .key ? 1 : 0)
205+
.saturation(appearsActive ? 1 : 0)
206206
#endif
207207
.dragGesture(
208208
options: options,

Sources/CompactSlider/Components/Scale/ScaleShapeStyle.swift

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,6 @@ extension StrokeStyle: Swift.Hashable {
7676
}
7777
}
7878

79-
extension CGPoint: Swift.Hashable {
80-
public func hash(into hasher: inout Hasher) {
81-
hasher.combine(x)
82-
hasher.combine(y)
83-
}
84-
}
85-
8679
// MARK: - Constructors
8780

8881
extension ScaleShapeStyle {

0 commit comments

Comments
 (0)