SwipeMenuViewController icon indicating copy to clipboard operation
SwipeMenuViewController copied to clipboard

Jump to the selected page

Open chaoshenglu opened this issue 7 years ago • 2 comments

public func jump(to index: Int, animated: Bool) { guard let tabView = tabView, let contentScrollView = contentScrollView else { return } if currentIndex != index { delegate?.swipeMenuView(self, willChangeIndexFrom: currentIndex, to: index) } jumpingToIndex = index tabView.jump(to: index) contentScrollView.jump(to: index, animated: animated) self.setNeedsLayout() // should add }

chaoshenglu avatar Sep 13 '18 02:09 chaoshenglu

What is the reason for doing it?

yysskk avatar Oct 21 '18 01:10 yysskk

How can I Jump to second tab without taping the second one. I tried this method, jump(to index: Int, animated: Bool) but always its showing the first one as selected. Help me please..

hilajqinnovation avatar Nov 12 '19 09:11 hilajqinnovation