UIView Flip Animation Code


Swift Code Snippet

UIView.transition(with: view, duration: 0.5, options: .transitionFlipFromRight, animations: {
  self.flipSideView.isHidden = !self.flipSideView.isHidden
}, completion: nil)