 
     /// If set to true, hiding a spinner causes scheduled spinners to be canceled
     public static var hideCancelsScheduledSpinners = true
-    
-    
+
     /// Hide the spinner
     ///
     /// - Parameter completion: A closure called upon completion
     public class func hide(_ completion: (() -> Void)? = nil) {
         let spinner = SwiftSpinner.sharedInstance
-        
+
         spinner.dismissing = true
-      
+
         NotificationCenter.default.removeObserver(spinner)
         if hideCancelsScheduledSpinners {
             delayedTokens.removeAll()
         }
-      
+
         DispatchQueue.main.async(execute: {
             spinner.clearTapHandler()
-         
+
             if spinner.superview == nil {
                 spinner.dismissing = false
                 return
             }
-         
+
             UIView.animate(withDuration: SwiftSpinner.standardAnimationDuration, delay: 0.0, options: .curveEaseOut, animations: {
                 spinner.blurView.contentView.alpha = 0
                 spinner.blurView.effect = nil

                    fatalError("\n`UIApplication.keyWindow` is `nil`. If you're trying to show a spinner from your view controller's `viewDidLoad` method, do that from `viewWillAppear` instead. Alternatively use `useContainerView` to set a view where the spinner should show")
                #endif
            }
         
            containerView.addSubview(spinner)
         
            UIView.animate(withDuration: SwiftSpinner.standardAnimationDuration, delay: 0.0, options: .curveEaseOut, animations: {
                spinner.blurView.contentView.alpha = 1
                spinner.blurView.effect = spinner.blurEffect
            }, completion: nil)
         
            #if os(iOS)
                // Orientation change observer
                NotificationCenter.default.addObserver(

        }
        return Singleton.instance
    }

    // MARK: - Init

    /// Init
    ///
    /// - Parameter frame: the view's frame
    public override init(frame: CGRect) {
        currentTitleFont = defaultTitleFont // By default we initialize to the same.

        super.init(frame: frame)

        blurEffect = UIBlurEffect(style: blurEffectStyle)
        blurView = UIVisualEffectView()
        addSubview(blurView)

        vibrancyView = UIVisualEffectView(effect: UIVibrancyEffect(blurEffect: blurEffect))
        addSubview(vibrancyView)

        let titleScale: CGFloat = 0.85
        titleLabel.frame.size = CGSize(width: frameSize.width * titleScale, height: frameSize.height * titleScale)
        titleLabel.font = currentTitleFont
