title: Custom Alert (UIAlertView) with swift
body: <p>How can i create a custom alert with Swift? I try translating a guide from Objective c but loads a full screen layout</p>
  
  <p>for do it easy i can load a new layout with the transparent background i try this:</p>
  
  <pre><code>    listaalertviewcontroller.view.backgroundColor = UIColor.clearColor()
      let purple = UIColor.purpleColor() // 1.0 alpha
      let semi = purple.colorWithAlphaComponent(0.5)
  
      listaalertviewcontroller.view.backgroundColor = semi
  
  
      presentingViewController.modalPresentationStyle = UIModalPresentationStyle.CurrentContext
  
      self.presentViewController(listaalertviewcontroller, animated: true, completion: nil)
  </code></pre>
  
  <p>in the animation it's transparent but when the animation ends it's opaque... and i turn off opaque option in the view... what i'm doing wrong?</p>