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

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

// MARK: - ZZHud

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