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
icon
animating UITabBarItem icon
textLabel
animating UITabBarItem textLabel
-
Start animation, method call when UITabBarItem is unselected
Declaration
Swift
public func deselectAnimation(icon : UIImageView, textLabel : UILabel, defaultTextColor : UIColor, defaultIconColor : UIColor)
Parameters
icon
animating UITabBarItem icon
textLabel
animating UITabBarItem textLabel
defaultTextColor
default UITabBarItem text color
defaultIconColor
default UITabBarItem icon color
-
Method call when TabBarController did load
Declaration
Swift
public func selectedState(icon: UIImageView, textLabel : UILabel)
Parameters
icon
animating UITabBarItem icon
textLabel
animating UITabBarItem textLabel