 
 public class SwiftSpinner: UIView {
     fileprivate static let standardAnimationDuration = 0.33
-    
+
    // MARK: - Singleton
-   
+
     //
     // Access the singleton instance
     //

        outerCircle.fillColor = UIColor.clear.cgColor
        outerCircle.strokeColor = outerCircleDefaultColor
        outerCircleView.layer.addSublayer(outerCircle)
      
        outerCircle.strokeStart = 0.0
        outerCircle.strokeEnd = 1.0
      
        blurView.contentView.addSubview(outerCircleView)
      
        innerCircleView.frame.size = frameSize
      
        let innerCirclePadding: CGFloat = 12
        innerCircle.path = UIBezierPath(ovalIn: CGRect(x: innerCirclePadding, y: innerCirclePadding, width: frameSize.width - 2*innerCirclePadding, height: frameSize.height - 2*innerCirclePadding)).cgPath
        innerCircle.lineWidth = 4.0

                })
        })
    }

    @objc public func updateFrame() {
        if let containerView = SwiftSpinner.containerView() {
            SwiftSpinner.sharedInstance.frame = containerView.bounds
            containerView.bringSubviewToFront(SwiftSpinner.sharedInstance)
        }
    }

    // MARK: - Util methods

    func delay(_ seconds: Double, completion:@escaping () -> Void) {
        let popTime = DispatchTime.now() + Double(Int64( Double(NSEC_PER_SEC) * seconds )) / Double(NSEC_PER_SEC)

        DispatchQueue.main.asyncAfter(deadline: popTime) {
            completion()
        }
    }

    fileprivate func layoutSubtitle() {
        if let subtitle = subtitleLabel {
            subtitle.bounds.size = subtitle.sizeThatFits(bounds.insetBy(dx: 20.0, dy: 0.0).size)
