Skip to content

Commit

Permalink
fix: gesture for ios 18.2
Browse files Browse the repository at this point in the history
  • Loading branch information
rnr committed Dec 23, 2024
1 parent 7f8f347 commit 61ea590
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,12 @@ struct CourseVideoDownloadBarView: View {
Toggle("", isOn: .constant(viewModel.isOn))
.toggleStyle(SwitchToggleStyle(tint: Theme.Colors.toggleSwitchColor))
.padding(.trailing, 15)
.highPriorityGesture(
.simultaneousGesture(
DragGesture(minimumDistance: 20, coordinateSpace: .local).onEnded { _ in
toggleAction()
}
)
.highPriorityGesture(
.simultaneousGesture(
TapGesture().onEnded {
toggleAction()
}
Expand Down

0 comments on commit 61ea590

Please sign in to comment.