vitoziv/VIPhotoView

Issue with Rotation Gesture

Opened this issue · 0 comments

Hi,
I have added rotation gesture to the photoview and could able to transform the imageview.
But it is not updating the container correctly. I have a squared frame(like 400, 400) and my image size is rectangle shape (like 3000, 4000). I set the contentmode to aspectfill. So that scrolling works vertically.
But the case is, When I add the rotation gesture and rotate the imageview, the contentsize is not changing and container is also not updating according to the image view rotation but I can see the frame of imageview is changing according to the rotation gesture.
Following is my code snippet for rotation.
- (void)handleRotation:(UIRotationGestureRecognizer *)sender { self.imageView.transform = CGAffineTransformMakeRotation(sender.rotation); }
Can you please help me.