title: Distorting part of a UIView
body: <p>I have an interesting problem. Hopefully there's an interesting solution :)</p>
  
  <p>I have a UIScrollView view that takes up the width of the iPad screen. The content of the scrollview is, obviously, wider.</p>
  
  <p>Now, I'd like to apply a transformation to the visible part (that is, the screen area) of the scroll view to gently curve up the two ends.</p>
  
  <p>Thus, there are two issues:</p>
  
  <p>1) Is such a transformation possible at all? Essentially I want to shift the left and right side up a little and have the top and bottom edges of the view curved as required such that the middle points don't move.</p>
  
  <p>2) I don't wish to apply this to the contents of the scroll view since the effect would be lost when scrolled out of view. Instead I wish to apply the result to the parent container. Would this work?</p>
  
  <p>Here's a graphic:</p>
  
  <p><img src="https://i.stack.imgur.com/B1giH.png" alt="enter image description here"></p>
  
  <p>Tim</p>