Open d7laungani opened 7 years ago
Hello,
Do you have some code or could you be clearer, it should work even if there is constraint on the UIView
.
Thanks
I mean literally the only code is image.isPinchable = true. Instazoom seems to be adding the UIPinchGesture.However it doesn't seem to even be realizing that a pinch action doesn't seem to be detected. I have already implemented a working UILongPress Gesture in the view so my theory is that two gestures are conflicting. However even after using a swift built-in function to enable them together it still doesn't work:
func gestureRecognizer(gestureRecognizer: UIGestureRecognizer, shouldRecognizeSimultaneouslyWithGestureRecognizer otherGestureRecognizer: UIGestureRecognizer) -> Bool { return true }
I tried using it on my image view in a cell and it doesn't work. I enabled pinch to zoom = true. I suspect it is because the image view has not be constrained in the view but mine is. Do you have a solution? Thanks