diff options
author | leoz <leoz@yahoo.com> | 2024-02-21 11:42:58 -0500 |
---|---|---|
committer | leoz <leoz@yahoo.com> | 2024-02-21 11:42:58 -0500 |
commit | c2502f4cf0ffa2f2680021d3a55105527eceb4f0 (patch) | |
tree | 30984b1e6d41b6a97fd057412aca5fe9569b3959 /Sources | |
parent | 64f8dbbcc3a46b614dbf9ed82f463b522957880e (diff) |
Use simultaneousGesture
Diffstat (limited to 'Sources')
-rw-r--r-- | Sources/SwiftyCrop/View/CropView.swift | 5 |
1 files 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 { |