         show(toast: contentView, toView: toView, toViewBackgroundColor: UIColor.white)
     }
     
+    /// 显示图片和文本，图片在上，文本在下
+    ///
+    /// - Parameters:
+    ///   - message: 文本信息
+    ///   - font: 文本字体
+    ///   - color: 文本颜色
+    ///   - icon: 图片
+    ///   - size: 图片大小
+    ///   - cornerRadius: 图片圆角
+    ///   - padding: 图片和文本的间距
+    ///   - toView: 图片要添加到的View
+    static func show(message: String,
+              font: UIFont = UIFont.systemFont(ofSize: 14),
+              color: UIColor = UIColor.black,
+              icon: UIImage,
+              size: CGSize = CGSize.zero,
+              cornerRadius: CGFloat = 0,
+              padding: CGFloat = 10,
+              toView: UIView) {
+        ZZHud.shared.show(message: message, font: font, color: color, icon: icon, size: size, cornerRadius: cornerRadius, padding: padding, toView: toView)
+    }
+    
     /// 显示UIActivityIndicatorViewStyle加载
     ///
     /// - Parameters:

        let msgLabel = hudLabel(message: message, font: font, color: color)
        show(toast: msgLabel, toView: toView)
    }

    
    /// 显示图片
    ///

        activityView.startAnimating()
        show(loading: activityView, toView: toView, toViewBackgroundColor: UIColor.clear)
    }
    
    /// 显示UIActivityIndicatorViewStyle加载
    ///
    /// - Parameters:
    ///   - style: UIActivityIndicatorViewStyle加载样式
    ///   - toView: 加载视图要添加到的View
    static func showActivity(style: UIActivityIndicatorViewStyle = .gray, toView: UIView) {
        ZZHud.shared.showActivity(style: style, toView: toView)
    }
}

/// Hud显示位置
///
/// - top: 最顶部
/// - center: 中间
/// - bottom: 最底部
enum ZZHudPosition {
    case top
    case center
    case bottom
}

let stringMaxWidth = UIScreen.main.bounds.width - 140

class ZZView: UIView { }

/// Toast & LoadingHud
struct ZZHud {
    static let shared = ZZHud()
    
    private init() { }
    
    /// 默认的显示动画
    var defaultShowAnimation: CAAnimation = {
        let anim = CABasicAnimation(keyPath: "opacity")
        anim.duration = 0.25
        anim.fromValue = 0
        anim.toValue = 1
        return anim
    }()
    
    /// 默认的隐藏动画
    var defaultHideAnimation: CAAnimation = {
        let anim = CABasicAnimation(keyPath: "opacity")
        anim.duration = 0.25
        anim.fromValue = 1
        anim.toValue = 0
        return anim
    }()
    
}

// MARK: - Core Method
