                         self.delegate?.didPresentAlertView!(self)
                     }
             })
-        } else if appearType == SwiftAlertViewAppearType.FlyFromLeft {
+            break
+        case .FlyFromLeft:
             let tempFrame = self.frame
             self.frame = CGRectMake(0 - self.frame.size.width - 10, self.frame.origin.y, self.frame.size.width, self.frame.size.height)
             UIView.animateWithDuration(appearTime, delay: 0, options: UIViewAnimationOptions.CurveEaseInOut, animations: { () -> Void in

                        self.delegate?.didPresentAlertView!(self)
                    }
            })
        }
    }
    

        view.addSubview(self)
        view.bringSubviewToFront(self)
        
        switch appearType! {
        case .FadeIn:
            self.alpha = 0
            UIView.animateWithDuration(appearTime, delay: 0, options: UIViewAnimationOptions.CurveEaseInOut, animations: { () -> Void in
                self.alpha = 1
                }, completion: { (finished) -> Void in
                    if self.delegate?.respondsToSelector(#selector(SwiftAlertViewDelegate.didPresentAlertView(_:))) == true {
                        self.delegate?.didPresentAlertView!(self)
                    }
            })
            break
        case .FlyFromTop:
            let tempFrame = self.frame
            self.frame = CGRectMake(self.frame.origin.x, 0 - self.frame.size.height - 10, self.frame.size.width, self.frame.size.height)
            UIView.animateWithDuration(appearTime, delay: 0, options: UIViewAnimationOptions.CurveEaseInOut, animations: { () -> Void in
