title: Photos app-like gap between pages in UIScrollView with pagingEnabled
body: <p>UIScrollView in paging mode assumes the pages are located right next to each other, with no gap. However if you open a photo in the Photos app and swipe through photos, you can see that it has some gap between pages. I want these gaps too.</p>
  
  <p>I'm looking for existing solutions if any, or for some more bizarre ideas about implementing the page gaps besides the one I have explained below. Or maybe there's some obvious easy way I am missing?</p>
  
  <p>To be clear: I want the gap to only be visible while scrolling, so I cannot simply inset the page content.</p>
  
  <hr>
  
  <p>My plan is to try moving the page content from inside <code>scrollViewDidScroll</code> callback, so that (assuming you're scrolling to the right) initially the target page is slightly offset to the right of its page boundaries, and by the time you arrive at the target page it's back at its proper location, and the source page is slightly offset to the left of its boundaries. (Or maybe instead of moving things continuously, I'll be better off shifting the offsets, say, exactly halfway between pages.)</p>
  
  <p>I'm the author of the <a href="http://github.com/andreyvit/ScrollingMadness/tree/master" rel="noreferrer">ScrollingMadness article+example</a> that I've been referring some people to here. I've implemented progammatic zooming, and got in-photo zooming+scrolling working together with inter-photo paging. So I know how to play with UIScrollView, and am looking for the advanced stuff.</p>
  
  <p>Please don't point me at TTScrollView. I've already pointed many people to it myself, but I consider it's feel too far from the native UIScrollView behaviour, and do not want to use it in my projects.</p>