title: UIView.transition does not move UIView content on first side
body: <p>I am using UIView.transition(with: duration: options: animations:) function to flip card. When I am animating frame property while transition is still in work, the first UIView state is not moving, its position is stack to parent view, but the second state on the other side of card is moving and animating perfectly.
  How to fix that? Thank you.</p>
  
  <p>Explaining the code: UIView.animate being called twice. First time being executed <strong>animations</strong> closure and then <strong>completion</strong> closure. It's ok here. Next, when I press button (see video) completion body will NOT be executed anymore because of <strong>if</strong> statement, but the trouble is when <strong>completion</strong> closure from the first time still animating flipping transition, <strong>animations</strong> closure being executing the second time and moving the card to the new position. All content on the first card side is not moving with second animation, though second side works perfect.</p>
  
  <pre><code>UIView.animate(withDuration: 2,
                 delay: delay,
                 options: [],
                 animations: { [unowned self] in
                          self.frame = CGRect(origin: newFrame.origin, size: newFrame.size)
                 },
                 completion: { [unowned self] (position) in
                     if self.destination != self.state {
                          UIView.transition(with: self,
                                            duration: 8,
                                            options: [.transitionFlipFromLeft, UIViewAnimationOptions.layoutSubviews],
                                            animations: {[unowned self] in
                                                self.state = self.destination
                                                self.setNeedsDisplay()
                          },
                                            completion: { (position) in
  
                     })
                 }
  })
  </code></pre>
  
  <p>Here is the video <a href="https://youtu.be/lRYT_6xWbWA" rel="nofollow noreferrer">https://youtu.be/lRYT_6xWbWA</a></p>
  
  <p>On screenshot cards are moving up and scaling a bit with property animation.</p>
  
  <p><a href="https://i.stack.imgur.com/pVGjX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pVGjX.png" alt="enter image description here"></a></p>