Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jump to the selected page #61

Open
chaoshenglu opened this issue Sep 13, 2018 · 2 comments
Open

Jump to the selected page #61

chaoshenglu opened this issue Sep 13, 2018 · 2 comments

Comments

@chaoshenglu
Copy link

chaoshenglu commented Sep 13, 2018

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
}

@yysskk
Copy link
Owner

yysskk commented Oct 21, 2018

What is the reason for doing it?

@hilajqinnovation
Copy link

hilajqinnovation commented Nov 12, 2019

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..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants