Back to Animated Tab Bar

RAMItemAnimation

docs/docsets/RAMAnimatedTabBarDemo.docset/Contents/Resources/Documents/Classes/RAMItemAnimation.html

5.2.02.7 KB
Original Source

RAMItemAnimation

public class RAMItemAnimation: NSObject, RAMItemAnimationProtocol

Base class for UITabBarItems animation

[

properties

](#/properties)

`

                duration
                `

The duration of the animation

Declaration

Swift

@IBInspectable public var duration : CGFloat = 0.5

`

                textSelectedColor
                `

The text color in selected state.

Declaration

Swift

@IBInspectable public var textSelectedColor: UIColor = UIColor.init(red: 0, green: 0.478431, blue: 1, alpha: 1)

`

                iconSelectedColor
                `

The icon color in selected state.

Declaration

Swift

@IBInspectable public var iconSelectedColor: UIColor!

`

                playAnimation(_:textLabel:)
                `

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

|

`

                deselectAnimation(_:textLabel:defaultTextColor:defaultIconColor:)
                `

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

|

`

                selectedState(_:textLabel:)
                `

Method call when TabBarController did load

Declaration

Swift

public func selectedState(icon: UIImageView, textLabel : UILabel)

Parameters

| 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.