Skip to content

Commit

Permalink
Fixes #80
Browse files Browse the repository at this point in the history
  • Loading branch information
0ber committed Feb 10, 2016
1 parent 44b9343 commit 1e2f94b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import QuartzCore

public class RAMFrameItemAnimation: RAMItemAnimation {

@nonobjc public var animationImages : Array<CGImage> = Array()
@nonobjc private var animationImages : Array<CGImage> = Array()

public var selectedImage : UIImage!

Expand Down Expand Up @@ -60,6 +60,20 @@ public class RAMFrameItemAnimation: RAMItemAnimation {
}
}
}

// MARK: public

public func setAnimationImages(images: Array<UIImage>) {
var animationImages = Array<CGImage>()
for image in images {
if let cgImage = image.CGImage {
animationImages.append(cgImage)
}
}
self.animationImages = animationImages
}

// MARK: RAMItemAnimationProtocol

override func playAnimation(icon : UIImageView, textLabel : UILabel) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ extension RAMAnimatedTabBarItem {

public class RAMAnimatedTabBarItem: UITabBarItem {

@IBOutlet weak var animation: RAMItemAnimation!
@IBOutlet public var animation: RAMItemAnimation!

@IBInspectable public var textColor: UIColor = UIColor.blackColor()
@IBInspectable public var iconColor: UIColor = UIColor.clearColor() // if alpha color is 0 color ignoring
Expand Down

0 comments on commit 1e2f94b

Please sign in to comment.