 
     /// The index of the front page in `SwipeMenuView` (read only).
     open private(set) var currentIndex: Int = 0
+    private var jumpingToIndex: Int?
 
     public init(frame: CGRect, options: SwipeMenuViewOptions? = nil) {
 

        if currentIndex == index { return }

        isJumping = true

        contentScrollView.jump(to: index, animated: true)
        moveTabItem(tabView: tabView, index: index)


        tabView?.update(toIndex)
        contentScrollView?.update(toIndex)
        if !isJumping {
            // delay setting currentIndex until end scroll when jumping
            currentIndex = toIndex
        }

        if !isJumping && !isLayoutingSubviews {
            delegate?.swipeMenuView(self, didChangeIndexFrom: fromIndex, to: toIndex)
        }
    }
