Scrollable tab bar in swift

3k views Asked by At

I'm using a tab bar view controller with more than 5 items and it's showing as the fifth item an item named "More". I want to avoid that item and make the scrollable tab bar. ThanksImage

2

There are 2 answers

1
Duncan C On

I don't think you can subclass UITabBar and get what you want.

You probably need to create this as a custom UI object. You could create it using a UIScrollview.

If you are a beginner then this is likely over your head.

0
AudioBubble On

I know this is old but maybe you could add a UIView to a Tab Bar Controllers scene (not the actual controller) and then add a UICollectionView on top of that same UIView of yours to create a custom Tab Bar. You would have to change the size and flow layout for the collection view but other than that if you are familiar with switch statements and delegates I don't see why it couldn't work!