title: How to hide a UIView while scrolling?
body: <p>I am trying to achieve this effect.</p>
  
  <p><a href="https://i.stack.imgur.com/CEY2p.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CEY2p.gif" alt="enter image description here"></a></p>
  
  <p>I am trying to hide a view, as the user scrolls up, and reveal it as the user scrolls down.</p>
  
  <p>I do not know how to go about this.
  I have tried looking as the scrollView didScroll function, but I am lost as how to set this up. Any advice?</p>