Skip to content

Commit f589856

Browse files
committed
allowsTightening (っ- ‸ - ς)
1 parent 853ce0f commit f589856

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

Sources/CompactSlider/Components/Background/BackgroundContainerView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ struct BackgroundContainerView<V: View>: View {
2020

2121
var body: some View {
2222
backgroundView(configuration, padding)
23-
.allowsTightening(false)
23+
.allowsHitTesting(false)
2424
}
2525
}

Sources/CompactSlider/Components/Progress/ProgressContainerView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ struct ProgressContainerView<V: View>: View {
3131
.frame(width: size.width, height: size.height)
3232
.offset(x: offset.x, y: offset.y)
3333
.frame(maxWidth: .infinity, maxHeight: .infinity, alignment: alignment)
34-
.allowsTightening(false)
34+
.allowsHitTesting(false)
3535
}
3636
}

Sources/CompactSlider/Components/Scale/ScaleContainerView.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ struct ScaleContainerView<V: View>: View {
3434
.offset(x: offset.x, y: offset.y)
3535
.frame(width: configuration.size.width * 3)
3636
.frame(width: configuration.size.width)
37-
.allowsTightening(false)
37+
.allowsHitTesting(false)
3838
} else if configuration.type.isScrollable,
3939
sliderOptions.contains(.loopValues),
4040
configuration.type.isVertical {
@@ -46,11 +46,11 @@ struct ScaleContainerView<V: View>: View {
4646
.offset(x: offset.x, y: offset.y)
4747
.frame(height: configuration.size.height * 3)
4848
.frame(height: configuration.size.height)
49-
.allowsTightening(false)
49+
.allowsHitTesting(false)
5050
} else {
5151
scaleView(configuration)
5252
.offset(x: offset.x, y: offset.y)
53-
.allowsTightening(false)
53+
.allowsHitTesting(false)
5454
}
5555
}
5656
}

Sources/CompactSlider/Styles/HandleViewWrapper.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ struct HandleViewWrapper: View {
1616
if configuration.progress.isMultipleValues, configuration.progress.progresses.count == 0 {
1717
Rectangle()
1818
.fill(Color.clear)
19-
.allowsTightening(false)
19+
.allowsHitTesting(false)
2020
} else {
2121
handleView
22-
.allowsTightening(false)
22+
.allowsHitTesting(false)
2323
}
2424
}
2525
}

0 commit comments

Comments
 (0)