Do I actually need a UIPinchGestureRecognizer inside a UIScrollView to have the pinch working? If yes how do I do it? I am trying to implement what flipboard has, where it b
For 'snap-image-to-screen-edges' solution @Shrikant Tanwade's worked well, but I wanted some insets. I tried settings constraints' constants, but that does not worked.
I ended with following solution:
same as for Shrikant's - set scrollView, imageView's constraints, set their constants to 0.
set insets with scrollView.contentInset = UIEdgeInsetsMake(....