RAMItemAnimation
public class RAMItemAnimation: NSObject, RAMItemAnimationProtocol
Base class for UITabBarItems animation
-
The duration of the animation
Declaration
Swift
@IBInspectable public var duration : CGFloat = 0.5 -
The text color in selected state.
Declaration
Swift
@IBInspectable public var textSelectedColor: UIColor = UIColor.init(red: 0, green: 0.478431, blue: 1, alpha: 1) -
The icon color in selected state.
Declaration
Swift
@IBInspectable public var iconSelectedColor: UIColor! -
Start animation, method call when UITabBarItem is selected
Declaration
Swift
public func playAnimation(icon : UIImageView, textLabel : UILabel)Parameters
iconanimating UITabBarItem icon
textLabelanimating UITabBarItem textLabel
-
Start animation, method call when UITabBarItem is unselected
Declaration
Swift
public func deselectAnimation(icon : UIImageView, textLabel : UILabel, defaultTextColor : UIColor, defaultIconColor : UIColor)Parameters
iconanimating UITabBarItem icon
textLabelanimating UITabBarItem textLabel
defaultTextColordefault UITabBarItem text color
defaultIconColordefault UITabBarItem icon color
-
Method call when TabBarController did load
Declaration
Swift
public func selectedState(icon: UIImageView, textLabel : UILabel)Parameters
iconanimating UITabBarItem icon
textLabelanimating UITabBarItem textLabel
RAMItemAnimation Class Reference