Created
          January 12, 2017 03:49 
        
      - 
      
- 
        Save hammadzz/333099b8b1351239d20a1e567ec1098b to your computer and use it in GitHub Desktop. 
    Raised Icon on RAMAnimatedTabBar
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | 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; | |
| } | |
| } | |
| } | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment