Back to Folding Cell

FoldingCell

docs/Classes/FoldingCell.html

5.0.22.2 KB
Original Source

FoldingCell

public class FoldingCell: UITableViewCell

UITableViewCell with folding animation

`

                containerView
                `

UIView whitch display when cell open

Declaration

Swift

@IBOutlet weak public var containerView: UIView!

`

                foregroundView
                `

UIView whitch display when cell close

Declaration

Swift

@IBOutlet weak public var foregroundView: RotatedView!

`

                itemCount
                `

the number of folding elements. Default 2

Declaration

Swift

@IBInspectable public var itemCount: NSInteger = 2

`

                backViewColor
                `

The color of the back cell

Declaration

Swift

@IBInspectable public var backViewColor: UIColor = UIColor.brownColor()

`

                AnimationType
                `

Folding animation types

  • Open: Open direction
  • Close: Close direction

Declaration

Swift

public enum AnimationType

[

life cicle

](#/%20life%20cicle)

`

                commonInit()
                `

Call this method in methods init(style: UITableViewCellStyle, reuseIdentifier: String?) after creating Views

Declaration

Swift

public func commonInit()

[

public

](#/public)

`

                selectedAnimation(_:animated:completion:)
                `

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.

|

© 2016 AlexKalinkin. All rights reserved. (Last updated: 2016-06-15)

Generated by jazzy ♪♫ v0.5.0, a Realm project.