aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorleoz <leoz@yahoo.com>2024-02-21 11:42:58 -0500
committerleoz <leoz@yahoo.com>2024-02-21 11:42:58 -0500
commitc2502f4cf0ffa2f2680021d3a55105527eceb4f0 (patch)
tree30984b1e6d41b6a97fd057412aca5fe9569b3959
parent64f8dbbcc3a46b614dbf9ed82f463b522957880e (diff)
Use simultaneousGesture
-rw-r--r--Sources/SwiftyCrop/View/CropView.swift5
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 {