title: Swift how to do appearance of uiview slide left to right
body: <p>I designed some UIView that interactive each other. But when a view appear always slide from right to left (default).
  But i want it appears left to right some case (e.g i swipe right).
  How i cant do it from Swift code?</p>
  
  <p>Updated</p>
  
  <p>I found a solution for this problem</p>
  
  <pre><code>            let slideInFromLeftTransition = CATransition()
              // Customize the animation's properties
              slideInFromLeftTransition.type = kCATransitionPush
              slideInFromLeftTransition.subtype = kCATransitionFromLeft
              slideInFromLeftTransition.duration = 0.5
              slideInFromLeftTransition.timingFunction = CAMediaTimingFunction(name: kCAMediaTimingFunctionEaseInEaseOut)
              slideInFromLeftTransition.fillMode = kCAFillModeRemoved
  
              // Add the animation to the View's layer
              self.navigationController?.view.layer.addAnimation(slideInFromLeftTransition, forKey: "slideInFromLeftTransition")
  </code></pre>
  
  <p>This solved.</p>