         let window = UIApplication.sharedApplication().windows.first as! UIWindow
         let spinner = SwiftSpinner.sharedInstance
         
+        spinner.showWithDelayBlock = nil
+        
         spinner.updateFrame()
         
         if spinner.superview == nil {

    //
    public class func hide(completion: (() -> Void)? = nil) {
        let spinner = SwiftSpinner.sharedInstance
        
        if spinner.superview == nil {
            return

    }
    
    //
    // Show the spinner activity on screen, after delay. If new call to show, 
    // showWithDelay or hide is maked before execution this call is discarded
    //
    public class func showWithDelay(delay: Double, title: String, animated: Bool = true)
    {
        let spinner = SwiftSpinner.sharedInstance
        
        spinner.showWithDelayBlock = {
            
            SwiftSpinner.show(title, animated: animated)
            
        }
        
        spinner.delay(seconds: delay){ [weak spinner] in
            
            if let spinner = spinner
            {
                spinner.showWithDelayBlock?()
            }
            
        }
    }
    
    //
    // Show the spinner activity on screen with custom font, if visible only update the title
    // Note that the custom font will be discarded when hiding the spinner
    // To permanently change the title font, set the defaultTitleFont property
