title: I want to make effect similar to resizing top view on contacts app?
body: <p>Native contacts app has interesting effect - when user tries to scroll, the scroll view pushes the top view with avatar and only when top view is in "small mode" it is scrolled up.</p>
  
  <p><a href="https://i.stack.imgur.com/x0iwk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/x0iwk.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/aXb35.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aXb35.png" alt="enter image description here"></a></p>
  
  <p>I was able to resize view on scrolling, via <code>didScroll</code> method. But problem is, content offset is also changing while i push the top vied. In native contacts, content offset changes only when top view is in "small mode"</p>
  
  <p>Any suggestions, how did they made this?</p>