     public var isLeftToRight: Bool
     public var duration: CFTimeInterval
     public var repeatCount: Float
-    public var window: UIWindow
+    //    public var window: UIWindow?
     public var progressView: MediumProgressView?
     
     init() {

    // MARK: function
    
    public func show() {
        if progressView?.superview == nil {
            window.addSubview(progressView!)
            progressView?.progressAnimation(isLeftToRight, duration: duration, repeatCount: repeatCount)

        isLeftToRight = true
        duration = 2.0
        repeatCount = Float.infinity
    }
    
    public static let sharedInstance = MediumProgressViewManager()
