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.12k stars 1.33k forks source link

How to make center uitabbar button raised as show in dribble gif #24

Closed buildwithgagan closed 8 years ago

0ber commented 8 years ago

Need change constant in icons constraint

let item: RAMAnimatedTabBarItem = self.tabBarItem as! RAMAnimatedTabBarItem
        for constraint in (item.iconView!.icon.superview?.constraints)! {            
            if let currentView: UIImageView = constraint.firstItem as? UIImageView {
                if item.iconView!.icon == currentView {
                    if constraint.firstAttribute == .CenterY {
                        constraint.constant = -10;
                    }
                }
            }
        }
embassem commented 8 years ago

May this be a @IBInspectable ?