From 61ea5903894dee39c3246d0d616a14e55458a0e6 Mon Sep 17 00:00:00 2001 From: Anton Yarmolenko <37253+rnr@users.noreply.github.com> Date: Mon, 23 Dec 2024 17:43:24 +0100 Subject: [PATCH] fix: gesture for ios 18.2 --- .../CourseVideoDownloadBarView.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Course/Course/Presentation/Subviews/CourseVideoDownloadBarView/CourseVideoDownloadBarView.swift b/Course/Course/Presentation/Subviews/CourseVideoDownloadBarView/CourseVideoDownloadBarView.swift index fa41436a..0f59eacf 100644 --- a/Course/Course/Presentation/Subviews/CourseVideoDownloadBarView/CourseVideoDownloadBarView.swift +++ b/Course/Course/Presentation/Subviews/CourseVideoDownloadBarView/CourseVideoDownloadBarView.swift @@ -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() }