Info | Value |
-------------------------|-------------------------------------|
XLPagerTabStrip | 8
Xcode | 9.2
iOS | 11
Is there any way to set default view controller instead of first one?
This line of code works but only in viewDidAppear I want to work in viewDidLoad in initialization.
moveToViewController(at: viewControllers.count - 1, animated: false)
I looked in code and find out that moveToViewController(at: preCurrentIndex) called in viewDidAppear so It will override that code my code in viewDidLoad.
Is it a bad Idea to change currentIndex to public and set it in my
View Controller >>
viewDidLoad>> aftersuper.viewDidLoad?
Thanks,
Vahid
Most helpful comment
This is my solution: https://github.com/Sepicat/XLPagerTabStrip/commit/81f3b87c884765444a404b2f22afd1bdd11df8f0