I tried to replace UIKit's UIPinchGestureRecognizer
with SwiftUI's MagnificationGesture
, but it doesn't seem possible in my case. I use the location(in: UIView)
function from the former, which allows me to zoom in on that point, specifically. It's a better experience when zooming in on an image.
Can I get that info from the MaginificationGesture
? In the example code I see only the CGFloat
for the amount of magnification.