title: tvOS 10 - make the only button in a UIScrollView to go out of focus when scrolled past it
body: <p>I am working on a tvOS 10 project, with Xcode 8 and Swift 3.0. 
  I have a scroll view that has 2 views under it. In one of these views there is a button, the only button in the entire scrollview. </p>
  
  <p><a href="https://i.stack.imgur.com/IlWvC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IlWvC.png" alt="enter image description here"></a></p>
  
  <p>The scrollview scrolls fine, but when the button comes on focus, it does not go out of focus anymore. I can still scroll past the button. But the button stays still in focus (zoomed out), I can not press it but it is in focus. I can only press it if the the visible view is really on top of the button.</p>
  
  <p>This is pretty much all the code I have in viewDidLoad()</p>
  
  <pre><code>// Set the scrolling content
  scrollView.contentSize = CGSize(width: 1920.0, height: 2800.0)
  
  // makes the labels focusable, so it will scroll.`enter code here`
  scrollView.panGestureRecognizer.allowe[![enter image description here][1]][1]dTouchTypes = [
  UITouchType.indirect.rawValue ]
  scrollView.directionalPressGestureRecognizer.isEnabled = true
  </code></pre>
  
  <p>I want to make it so the button stays in focus as the scroll view is passing the button. But once the scroll view goes past or above the button, I want to be out of focus. So, if the user scrolls back down again it will come on focus.
  <a href="https://i.stack.imgur.com/lNkrQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lNkrQ.png" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/OvZk5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OvZk5.png" alt="enter image description here"></a></p>