 
 // The Main Class
 public class SCLAlertView: UIViewController {
+	
+	static var currentAlertView:SCLAlertView?
+	
     let kDefaultShadowOpacity: CGFloat = 0.7
     let kCircleTopPosition: CGFloat = -12.0
     let kCircleBackgroundTopPosition: CGFloat = -15.0

            self.view.alpha = 0
            }, completion: { finished in
                self.view.removeFromSuperview()
        })
    }



    // showTitle(view, title, subTitle, duration, style)
    public func showTitle(title: String, subTitle: String, duration: NSTimeInterval?, completeText: String?, style: SCLAlertViewStyle, icon: UIImage?) -> SCLAlertViewResponder {

		SCLAlertView.currentAlertView?.view.removeFromSuperview()
		SCLAlertView.currentAlertView = self
		
		view.alpha = 0
        let rv = UIApplication.sharedApplication().keyWindow?.subviews.first as! UIView
        rv.addSubview(view)
		rv.bringSubviewToFront(view)
        view.frame = rv.bounds
        baseView.frame = rv.bounds

