     
     // MARK: public
     
-    func selectedAnimation(isSelected: Bool, animated: Bool, completion: CompletionHandler?) {
+    public func selectedAnimation(isSelected: Bool, animated: Bool, completion: CompletionHandler?) {
         if isSelected {
             containerView.alpha = 1;
             for subview in containerView.subviews {


import UIKit

class FoldingCell: UITableViewCell {
    
    typealias CompletionHandler = () -> Void

    @IBOutlet weak var containerView: UIView!
    @IBOutlet weak var foregroundView: RotatedView!

        self.layer.addAnimation(rotateAnimation, forKey: "rotation.x")
    }
    
    override public func animationDidStart(anim: CAAnimation) {
        self.layer.shouldRasterize = true
        self.alpha = 1
    }
    
    override public func animationDidStop(anim: CAAnimation, finished flag: Bool) {
        if hiddenAfterAnimation {
            self.alpha = 0
        }
