                 hideCompletionHandler?()
             }
         }
-        
+
         func hideIfNeeded(_ animated: Bool) {
             if autoHidden == true && hiddenTimer == nil {
                 hide(animated)
             }
         }
-        
+
         @objc func panGestureAction(_ gesture: UIPanGestureRecognizer) {
             if (position == .top && contentOffsetY >= 0) || position == .bottom && contentOffsetY < 0 {
                 hide(false)
                 return
             }
-            
+
             let locationOffsetY = gesture.location(in: view).y
-            
+
             if gesture.state == .changed {
                 switch position {
                 case .top:

            self?.completionHandler = nil
            NavigationNotice.sharedManager.next()
        }
        
        if noticeViewController.contentView != nil {
            NavigationNotice.sharedManager.add(self)
        }
        
        return self
    }
    
    /// Animated block of show.
    @discardableResult
    open func showAnimations(_ animations: @escaping (@escaping () -> Void, @escaping (Bool) -> Void) -> Void) -> Self {
        noticeViewController.showAnimations = animations
        
        return self
    }
    
    /// Hide notification.
    @discardableResult
    open func hide(_ interval: TimeInterval) -> Self {
        noticeViewController.setInterval(interval)
        return self
    }
    
    /// Animated block of hide.
    @discardableResult
    open func hideAnimations(_ animations: @escaping (@escaping () -> Void, @escaping (Bool) -> Void) -> Void) -> Self {
        noticeViewController.hideAnimations = animations
        
        return self
    }
    
    open func completion(_ completion: (() -> Void)?) {
        completionHandler = completion
    }
    
    /// Remove all notification.
    @discardableResult
    open func removeAll(_ hidden: Bool) -> Self {
        let notice = NavigationNotice.sharedManager
        notice.removeAll()
        
        if hidden {
            _ = notice.showingNotice?.hide(0)
        }
        
        return self
    }
    
    @discardableResult
    open func position(_ position: NoticePosition) -> Self {
        noticeViewController.position = position
        return self
    }
    
    @discardableResult
    open func isShowSafeArea(_ isShow: Bool) -> Self {
        noticeViewController.isShowSafeArea = isShow
        return self
    }
}

                    isHideIfNeeded = view.bounds.height - contentHeight > locationOffsetY
                    shouldShow = gesture.velocity(in: view).y < 0
                }

                if isHideIfNeeded {
                    contentOffsetY = position == .top ? -contentHeight : contentHeight
                    hideIfNeeded(true)
                    return
                }

                if shouldShow {
                    show() {
                        self.hideIfNeeded(true)
