docs/Classes/RAMItemAnimation.html
public class RAMItemAnimation: NSObject, RAMItemAnimationProtocol
Base class for UITabBarItems animation
[
](#/properties)
`
duration
`
The duration of the animation
Swift
@IBInspectable public var duration : CGFloat = 0.5
`
textSelectedColor
`
The text color in selected state.
Swift
@IBInspectable public var textSelectedColor: UIColor = UIColor.init(red: 0, green: 0.478431, blue: 1, alpha: 1)
`
iconSelectedColor
`
The icon color in selected state.
Swift
@IBInspectable public var iconSelectedColor: UIColor!
`
playAnimation(_:textLabel:)
`
Start animation, method call when UITabBarItem is selected
Swift
public func playAnimation(icon : UIImageView, textLabel : UILabel)
| icon |
animating UITabBarItem icon
|
| textLabel |
animating UITabBarItem textLabel
|
`
deselectAnimation(_:textLabel:defaultTextColor:defaultIconColor:)
`
Start animation, method call when UITabBarItem is unselected
Swift
public func deselectAnimation(icon : UIImageView, textLabel : UILabel, defaultTextColor : UIColor, defaultIconColor : UIColor)
| icon |
animating UITabBarItem icon
|
| textLabel |
animating UITabBarItem textLabel
|
| defaultTextColor |
default UITabBarItem text color
|
| defaultIconColor |
default UITabBarItem icon color
|
`
selectedState(_:textLabel:)
`
Method call when TabBarController did load
Swift
public func selectedState(icon: UIImageView, textLabel : UILabel)
| icon |
animating UITabBarItem icon
|
| textLabel |
animating UITabBarItem textLabel
|
© 2016 AlexKalinkin. All rights reserved. (Last updated: 2016-06-10)
Generated by jazzy ♪♫ v0.5.0, a Realm project.