FoldingCell
public class FoldingCell: UITableViewCell
UITableViewCell with folding animation
-
UIView whitch display when cell open
Declaration
Swift
@IBOutlet weak public var containerView: UIView!
-
UIView whitch display when cell close
Declaration
Swift
@IBOutlet weak public var foregroundView: RotatedView!
-
the number of folding elements. Default 2
Declaration
Swift
@IBInspectable public var itemCount: NSInteger = 2
-
The color of the back cell
Declaration
Swift
@IBInspectable public var backViewColor: UIColor = UIColor.brownColor()
-
Folding animation types
- Open: Open direction
- Close: Close direction
Declaration
Swift
public enum AnimationType
-
Call this method in methods init(style: UITableViewCellStyle, reuseIdentifier: String?) after creating Views
Declaration
Swift
public func commonInit()
-
Open or close cell
Declaration
Swift
public func selectedAnimation(isSelected: Bool, animated: Bool, completion: (Void -> Void)?)
Parameters
isSelected
Specify true if you want to open cell or false if you close cell.
animated
Specify true if you want to animate the change in visibility or false if you want immediately.
completion
A block object to be executed when the animation sequence ends.