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

How to set up Left and right layout? #258

Closed cuibeihong closed 4 years ago

cuibeihong commented 5 years ago

device: iPad iOS11+ like this:

屏幕快照
igork-ramotion commented 5 years ago

Right now library doesn't support this layout, to implement this at first you can take a look at createConstraints function there layout magic happen: https://github.com/Ramotion/animated-tab-bar/blob/3fc716a0a6e15ed3488ebe6e2721cc7cab83426e/RAMAnimatedTabBarController/RAMAnimatedTabBarController.swift#L391

You can add xOffset to RAMAnimatedTabBarItem, but you will need to support it in different places.