             if let underlineView = underlineView as? GradientUnderlineView {
                 underlineView.startColor = startColor
                 underlineView.endColor = endColor
+                underlineView.backgroundColor = nil
             } else {
                 underlineView.backgroundColor = startColor
             }

    }
    
    fileprivate func animateUnderlineViewIfNeeded() {
        guard case .underline(_, _, let horizontalPadding, _) = menuOptions.focusMode else { return }
        
        let targetFrame = menuItemViews[currentPage].frame
        underlineView.frame.origin.x = targetFrame.minX + horizontalPadding
        underlineView.frame.size.width = targetFrame.width - horizontalPadding * 2
    }
    
    fileprivate func animateRoundRectViewIfNeeded() {

        return $0
    }(UIView(frame: .zero))
    lazy fileprivate var underlineView: UIView = {
        return GradientUnderlineView(frame: .zero)
    }()
    lazy fileprivate var roundRectView: UIView = {
        $0.isUserInteractionEnabled = true
