title: iOS Swift - Cannot Change Animation Options with Array [UIViewAnimationOptions]
body: <p>I have some problem about animation options with <code>array</code> in Swift 2. I can add multiple options in <code>array</code> like this : <code>[.Repeat, UIViewAnimationOptions.Autoreverse]</code> and this is if I add in animation function (first example) :</p>
  
  <pre><code>UIView.animateWithDuration(1, delay: 0, options: [.Repeat, UIViewAnimationOptions.Autoreverse], animations: {
  
      }) { (true) in
  
      }
  </code></pre>
  
  <p>But I cannot add animation options in <code>array</code> like this (second example) :</p>
  
  <pre><code>var animationOptions = [UIViewAnimationOptions]()
  animationOptions.append(UIViewAnimationOptions.Repeat)
  animationOptions.append(UIViewAnimationOptions.Autoreverse)
  UIView.animateWithDuration(1, delay: 0, options: animationOptions, animations: {
  
      }) { (true) in
  
      }
  </code></pre>
  
  <p>Can someone help me make animation options in array like second example ?</p>