         }
     }
     
-}
-
-
-//MARK: - Animations
-extension Hud {
-    
     open func animateDisplay() {
         
         if effectView == nil {

            
        }
        self.action = action
        setContent(view: vertical, animated: animated, type: .text)
    }
}

//MARK: - Content

extension Hud {
    
    open func instantiateLoader() -> UIView {
        let activity = UIActivityIndicatorView(activityIndicatorStyle: .whiteLarge)

        
        let container = effectView?.contentView ?? self.view!
        container.addSubview(view)
        
        switch contentMode {
        case .bottom:
            container.addConstraints(NSLayoutConstraint.constraints(withVisualFormat: "|-0-[view]-0-|", options: [], metrics: nil, views: ["view": view]))
            container.addConstraints(NSLayoutConstraint.constraints(withVisualFormat: "V:[view]-0-|", options: [], metrics: nil, views: ["view": view]))
        default:
            container.addConstraints([
                NSLayoutConstraint(item: container, attribute: .centerX,
                                   relatedBy: .equal,
                                   toItem: view, attribute: .centerX,
                                   multiplier: 1, constant: 0),
                NSLayoutConstraint(item: container, attribute: .centerY,
                                   relatedBy: .equal,
                                   toItem: view, attribute: .centerY,
                                   multiplier: 1, constant: 0)
                ])
            
        }

        if animated && oldContent != nil {
            animateContent(from: (oldContent!, oldContentType), to: (content!, contentType), completion: completion)
        } else {
            completion(true)
        }
    }
    
    public static func loading() -> Hud {
        let hud = Hud()
        Manager.instance.display(hud: hud)
        hud.set(content: hud.instantiateLoader(), animated: false, type: .loader)
        return hud
    }

