PagingKit
PagingKit copied to clipboard
Switch page programmatically
Hi, how to switch to another page programmatically, i think the code should look like:
page.selectedIndex = 2
@huy-lv You can use the following methods.
pagingMenuViewController.scroll(index: 2)
pagingContentViewController.scroll(to: 2, animated: true)
https://github.com/kazuhiro4949/PagingKit/blob/master/Sources/PagingMenuViewController.swift#L165 https://github.com/kazuhiro4949/PagingKit/blob/master/Sources/PagingContentViewController.swift#L204