title: why is bringSubviewToFront() only working for panning, not tapping?
body: <pre><code>view.bringSubviewToFront(tappedView)
  </code></pre>
  
  <p>is working when I drag (pan) views but not when I tap them. My issue is that when I have one view layered over the other, I want the bottom view to come to the front when tapped. Currently it will only come to the front when dragged. Do I need some additional code to do this? Thanks.</p>
  
  <p>Here's an excerpt from my code for more context:</p>
  
  <pre><code>@objc func didPan(_ recognizer: UIPanGestureRecognizer) {
          let location = recognizer.location(in: self.view)
              switch recognizer.state {
              case .began:
                  currentTappedView = moviePieceView.filter { pieceView -&gt; Bool in
                      let convertedLocation = view.convert(location, to: pieceView)
                      return pieceView.point(inside: convertedLocation, with: nil)
                      }.first
                  currentTargetView = movieTargetView.filter { $0.pieceView == currentTappedView }.first
              case .changed:
                  guard let tappedView = currentTappedView else { return }
                  let translation = recognizer.translation(in: self.view)
                  tappedView.center = CGPoint(x: tappedView.center.x + translation.x, y: tappedView.center.y + translation.y)
                  recognizer.setTranslation(.zero, in: view)
                  view.bringSubviewToFront(tappedView)
      ```
  </code></pre>