                                                size: CGSize(width: CGFloat.screenWidth - 100, height: 120))
 
     static var CICHUDToastRect = CGRect.init(origin: .zero,
-                                             size: CGSize(width: CGFloat.screenWidth - 180, height: 60))
+                                             size: CGSize(width: CGFloat.screenWidth * 0.8, height: 60))
 
     // 内部边距
     var CICHUDInsets = 20.makeEdgeInsets


    // MARK: - build ui
    var backgroundView = UIVisualEffectView()
    var titleLabel = UILabel()
    var animationImgView = UIImageView()
    // CILoadingStyle.original  原生的加载指示器
    lazy var activityView: UIActivityIndicatorView = {

        if let keyWindow = UIApplication.shared.keyWindow {
            keyWindow.addSubview(hud)
            keyWindow.bringSubview(toFront: hud)
            if let title = title {
                let hudWidth = CGFloat.minimum(title.cicWidth(.greatestFiniteMagnitude, font: UIFont.cic.systemFont) + 20, CICHUDToastRect.width)
                let hudHeight = title.cicHeight(hudWidth, font: UIFont.cic.systemFont)
                hud.width(hudWidth).height(hudHeight).center(keyWindow.cic.internalCenter)
            } else {
                hud.frame(CICHUDToastRect)
                    .center(keyWindow.cic.internalCenter)
            }
        }
        DispatchQueue.main.asyncAfter(deadline: .now() + duration) {
            hud.hide()
