xmartlabs/XLPagerTabStrip

Is it possible to show second index(secondtab) based on some condition ?

sarojtiwari opened this issue · 1 comments

I want to check access token and if access token is present I need to select second tab. Any way to do this. since current index is private var and can't be set.

Some function such as moveToViewController function also doesn't work for this scenario.

DispatchQueue.main.async {
				self.moveToViewController(at: 1, animated: false)
			}

Turns out this will work completely fine.