Xlpagertabstrip: Is there any way to set default `viewController`?

Created on 16 Mar 2018  路  2Comments  路  Source: xmartlabs/XLPagerTabStrip

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 >> after super.viewDidLoad?

Thanks,
Vahid

Most helpful comment

All 2 comments

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bishalg picture bishalg  路  5Comments

nikhil191090 picture nikhil191090  路  5Comments

alexanderkhitev picture alexanderkhitev  路  4Comments

fenixsolorzano picture fenixsolorzano  路  4Comments

luminkhant picture luminkhant  路  4Comments