Ramotion / animated-tab-bar

:octocat: RAMAnimatedTabBarController is a Swift UI module library for adding animation to iOS tabbar items and icons. iOS library made by @Ramotion
https://www.ramotion.com/animated-tab-bar-ios-app-development-ui-library/
MIT License
11.13k stars 1.33k forks source link

Too much spacing betwen items on iPad #177

Open fruitcoder opened 7 years ago

fruitcoder commented 7 years ago

Compared to the default UITabBarController from UIKit, this view controller spread its items along the full width (similar to how flexbox's space-around works). Is there any way I can disable this?

Normal behavior from Apple's News App: simulator screen shot 9 may 2017 14 22 34

Screenshot from Demo project: simulator screen shot 9 may 2017 14 22 02

johndpope commented 7 years ago

I thought it may be a collection view where you could over ride it, but Afraid not. As last resort, Yiu could try adding empty items on left and right.

fruitcoder commented 7 years ago

It's all handled by auto layout constraints. I'll probably fork and override createViewContainers()

johndpope commented 7 years ago

did you make any head way with this?

fruitcoder commented 7 years ago

It's not very high on my list, but I'll fix it within the next two weeks and can share it via PR if you want

johndpope commented 7 years ago

I would love that. Some inspiration https://soundcloud.com/camokrooked/essential-mix-2017