ViewPager-Swift icon indicating copy to clipboard operation
ViewPager-Swift copied to clipboard

Dynamic Tab Name change

Open ErAshu opened this issue 6 years ago • 2 comments

Is any way to change the name of tabs.

I have to show array count beside the tab name like this. Apple(8), Banana(7) These counts come from API.

ErAshu avatar Aug 17 '18 08:08 ErAshu

Hi @ErAshu , Did you try invalidateTabs() method of ViewPager ?

Update your array of ViewPagerTab and then call invalidateTabs() of ViewPagerController object.

nrlnishan avatar Aug 17 '18 14:08 nrlnishan

I didn't get this?

ErAshu avatar Sep 21 '18 06:09 ErAshu