     
     private init() { }
     
-    var contentInset: UIEdgeInsets = UIEdgeInsets.zero
-    
     /// 默认的显示动画
     var defaultShowAnimation: CAAnimation = {
         let anim = CABasicAnimation(keyPath: "opacity")

        hud.frame = hudFrame
        toView.addSubview(hud)
    }
}

// MARK: - ZZHud

    /// - Parameters:
    ///   - hud: progress视图
    ///   - toView: progress视图所在的View
    ///   - contentInset: toast视图所在的View的contentInset
    ///   - position: progress视图显示的位置
    ///   - offsetY: progress视图显示的位置的垂直偏移量
    ///   - showDuration: progress视图显示时长
    ///   - animation: progress视图显示的动画
    /// - Returns: progress视图
    @discardableResult
    func show(progress hud: UIView, toView: UIView, contentInset: UIEdgeInsets = .zero, position: ZZHudPosition = .center, offsetY: CGFloat = 0, showDuration: TimeInterval = 2, animation: (() -> CAAnimation)? = nil) -> UIView {
        
        let hudView = wrap(hud, contentInset: contentInset)
        add(hud: hudView, toView: toView, position: position, offsetY: offsetY)
        
        let showAnim = animation != nil ? animation!() : defaultShowAnimation
