title: Fade In and Fade out in Animation Swift
body: <p>I have an UIImageView with an Animation and, in the UIView, I apply a fadeIn effect, but I need to apply fade out when the UIImageView, which is animated, when is touched. </p>
  
  <p>This is what I make to fade in. </p>
  
  <pre><code>UIView.animateWithDuration(0.5, delay: delay, 
      options: UIViewAnimationOptions.CurveEaseOut, animations: {
          uiImageView.alpha = 1.0
          }
  </code></pre>