From c2502f4cf0ffa2f2680021d3a55105527eceb4f0 Mon Sep 17 00:00:00 2001 From: leoz Date: Wed, 21 Feb 2024 11:42:58 -0500 Subject: Use simultaneousGesture --- Sources/SwiftyCrop/View/CropView.swift | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Sources/SwiftyCrop/View/CropView.swift b/Sources/SwiftyCrop/View/CropView.swift index 92b1138..03de910 100644 --- a/Sources/SwiftyCrop/View/CropView.swift +++ b/Sources/SwiftyCrop/View/CropView.swift @@ -65,8 +65,6 @@ struct CropView: View { viewModel.lastOffset = viewModel.offset } - let combinedGesture = magnificationGesture.simultaneously(with: dragGesture) - VStack { Text("interaction_instructions", tableName: localizableTableName, bundle: .module) .font(.system(size: 16, weight: .regular)) @@ -101,7 +99,8 @@ struct CropView: View { ) } .frame(maxWidth: .infinity, maxHeight: .infinity) - .gesture(combinedGesture) + .simultaneousGesture(magnificationGesture) + .simultaneousGesture(dragGesture) HStack { Button { -- cgit v1.2.3