yysskk / SwipeMenuViewController

Swipable tab and menu View and ViewController.
MIT License
1.29k stars 131 forks source link

set default tab #82

Closed hecroge closed 5 years ago

hecroge commented 5 years ago

How can I change the default tab shown by default? I want to show the second tab by default. I tried with the method "jump" and "reloadData(options: SwipeMenuViewOptions.TabView? = nil, default defaultIndex: Int? = nil)".

Thanks

hecroge commented 5 years ago

You can use the method "jump" to the tab you want in protocol viewDidSetupAt