We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 702ccd0 commit 6f55312Copy full SHA for 6f55312
Sources/ImageViewerRemote/ImageViewerRemote.swift
@@ -229,10 +229,12 @@ class PinchZoomView: UIView {
229
offset = CGSize(width: location.x - startLocation.x, height: location.y - startLocation.y)
230
231
case .ended, .cancelled, .failed:
232
- isPinching = false
233
- scale = 1.0
234
- anchor = .center
235
- offset = .zero
+ withAnimation(.interactiveSpring()) {
+ isPinching = false
+ scale = 1.0
+ anchor = .center
236
+ offset = .zero
237
+ }
238
default:
239
break
240
}
0 commit comments