-
Notifications
You must be signed in to change notification settings - Fork 131
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
Comments
What is the reason for doing it? |
How can I Jump to second tab without taping the second one. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
}
The text was updated successfully, but these errors were encountered: