Skip to content

Instantly share code, notes, and snippets.

@hammadzz
Created January 12, 2017 03:49
Show Gist options
  • Save hammadzz/333099b8b1351239d20a1e567ec1098b to your computer and use it in GitHub Desktop.
Save hammadzz/333099b8b1351239d20a1e567ec1098b to your computer and use it in GitHub Desktop.
Raised Icon on RAMAnimatedTabBar
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