title: Change UIButton tint color while scrolling
body: <p>I have a custom table view header that becomes blurred when the user scrolls down. Id like to change the tint color of one of the navigation bar items items (its not a nav bar button item, just a UIButton). I have been using the tableviews contentOffset.y property to animate buttons, and blur the background image view. I need to do this to the tint color as well but I can figure out how.</p>
  
  <p>For example this is code to shrink the profile pic and the hide some views using the alpha property</p>
  
  <pre><code>func movingUp(offset: CGFloat) {
      if infoView.alpha &gt;= 0 {
          let alphaOffset = (offset - 133)/105.0
          infoView.alpha = alphaOffset*1.2
          profilePic.alpha = alphaOffset
      }
  
      if profileWidth.constant &gt;= 45 {
          profilePic.layer.cornerRadius = (((offset - 133)/105.0) * 90)/2
          profileHeight.constant = ((offset - 133)/105.0) * 90
          profileWidth.constant = ((offset - 133)/105.0) * 90
      }
  }
  </code></pre>