title: How to scroll UICollectionView that is underneath another UICollectionView?
body: <p><a href="https://i.stack.imgur.com/nqWtX.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nqWtX.gif" alt="enter image description here"></a></p>
  
  <p>So heres my issue,  the 4 orange rectangles you see on the gif are a single vertical UICollectionView = orangeCollectionView.</p>
  
  <p>The Green and Purple "card" views are part of another UICollectionView = overlayCollectionView.</p>
  
  <p>overlayCollectionView has 3 cells, one of which is just a blank UICollectionViewCell, the other 2 are the cards.</p>
  
  <p>When the overlayCollectionView is showing the blank UICollectionViewCell, I want to be able to scroll the orangeCollectionView.</p>
  
  <pre><code>override func point(inside point: CGPoint, with event: UIEvent?) -&gt; Bool {
      guard let superr = superview else { return true}
      for view in superr.subviews {
          if view.isKind(of: OrangeCollectionView.self) {
              view.point(inside: point, with: event)
              return false
          }
      }
      return true
  }
  </code></pre>
  
  <p>This allows me to scroll the orangeCollectionView HOWEVER this doesn't actually work to fix my issue.  I need to be able to scroll left and right to show the cards, however this blocks all touches becuase the point always falls on the OrangeCollectionView.</p>
  
  <p>How can I check to see if they are scrolling left/right to show the cards? Otherwise if they are on the blank cell, scroll the orangeViewController up and down.</p>