Vincent Ho
Vincent Ho

Reputation: 385

iOS horizontal scrollable tab bar in Swift

Recently, I find a iPhone app using horizontal scrollable tab bar and the item in the tab bar can be add or remove in the bar. I want to know which ui framework is using for this feature. Thanks for your help!

enter image description here

enter image description here

Upvotes: 0

Views: 5508

Answers (1)

Bazyli Zygan
Bazyli Zygan

Reputation: 24

Theoretically you can implement this using UIPageViewController. Thing is that using it, it's hard to catch how far have you scrolled the page so far to position "underline" correctly.

The best solution I see is to use UIScrollView and position everything yourself. There was a WWDC presentation how to use UIScrollView to "swipe" through images (https://developer.apple.com/videos/play/wwdc2011/104/). You will find step by step guide how to get the result you need.

Upvotes: 1

Related Questions