diff --git a/PagingKit/PagingMenuViewController.swift b/PagingKit/PagingMenuViewController.swift index a6f6059..7181675 100644 --- a/PagingKit/PagingMenuViewController.swift +++ b/PagingKit/PagingMenuViewController.swift @@ -327,9 +327,8 @@ extension PagingMenuViewController: PagingMenuViewDelegate { } public func pagingMenuView(pagingMenuView: PagingMenuView, didSelectItemAt index: Int) { - guard menuView.focusView.selectedIndex != index else { return } - delegate?.menuViewController(viewController: self, didSelect: index, previousPage: menuView.focusView.selectedIndex ?? 0) + guard menuView.focusView.selectedIndex != index else { return } menuView.scroll(index: index) { [weak self] (finish) in guard let _self = self, finish else { return } _self.delegate?.menuViewController(viewController: _self, focusViewDidEndTransition: _self.menuView.focusView)