RAMFrameItemAnimation
public class RAMFrameItemAnimation: RAMItemAnimation
The RAMFrameItemAnimation class provides keyframe animation.
-
A Boolean value indicated plaing revers animation when UITabBarItem unselected, if false image change immediately, defalut value true
Declaration
Swift
@IBInspectable public var isDeselectAnimation: Bool = true -
path to array of image names from plist file
Declaration
Swift
@IBInspectable public var imagesPath: String!
-
Set images for keyframe animation
Declaration
Swift
public func setAnimationImages(images: Array<UIImage>)Parameters
imagesimages for keyframe animation
-
Start animation, method call when UITabBarItem is selected
Declaration
Swift
override public func playAnimation(icon : UIImageView, textLabel : UILabel)Parameters
iconanimating UITabBarItem icon
textLabelanimating UITabBarItem textLabel
-
Start animation, method call when UITabBarItem is unselected
Declaration
Swift
override 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
override public func selectedState(icon : UIImageView, textLabel : UILabel)Parameters
iconanimating UITabBarItem icon
textLabelanimating UITabBarItem textLabel
RAMFrameItemAnimation Class Reference