title: UIScrollView Delegate Re-Routing - To check the state of UIScrollView
body: <p>I have a tableView and button on the same view (Siblings), </p>
  
  <p>i need to HIDE the button when the tableView is SCROLLING (Up and Down Direction no problem) and SHOW when it is STOPPED SCROLLING</p>
  
  <p>I tried the following code, but it is not working (Correctly)</p>
  
  <pre><code>func scrollViewDidScroll(_ scrollView: UIScrollView) {
      self.vcView.hideButton()
   }
  
   func scrollViewDidEndScrollingAnimation(_ scrollView: UIScrollView) {
      self.vcView.showButton();
   }
  </code></pre>
  
  <p>After a lot of search i found this <a href="https://horseshoe7.wordpress.com/2013/12/20/how-to-know-when-a-uiscrollview-is-scrolling-moving/" rel="nofollow noreferrer">article</a>, but it is in Objective C, can anyone help me to convert it in to Swift 3.</p>