ElongationCell
open class ElongationCell : UITableViewCell, Expandable
UITableViewCell subclass.
This cell used by ElongationViewController
.
Cell can be expanded and used for transition to ElongationDetailViewController
.
Can only be configured from ’.xib’ or Storyboard.
-
Is this cell in
expanded
state.Declaration
Swift
open var isExpanded: Bool
-
View on top half of
contentView
. Add here all the views which wont be scaled and must stay on their position.Declaration
Swift
@IBOutlet public var topView: UIView!
-
height
constraint oftopView
. This constraint will be changed according toElongationConfig
.Declaration
Swift
@IBOutlet public var topViewHeightConstraint: NSLayoutConstraint!
-
top
constraint oftopView
. This constraint will be changed ifElongationConfig
was configured for using custom separators.Declaration
Swift
@IBOutlet public var topViewTopConstraint: NSLayoutConstraint!
-
This is the front view which can be scaled if
scaleFactor
was configured inElongationConfig
. Also to this view can be applied ‘parallax’ effect.Declaration
Swift
@IBOutlet public var scalableView: UIView!
-
centerY
constraint of view, to which must be appliedparallax
effect.Declaration
Swift
@IBOutlet public var parallaxViewCenterConstraint: NSLayoutConstraint!
-
height
constraint of view, to which must be appliedparallax
effect.Declaration
Swift
@IBOutlet public var parallaxViewHeightConstraint: NSLayoutConstraint!
-
The view which comes from behind the cell when you tap on the cell.
Declaration
Swift
@IBOutlet public var bottomView: UIView!
-
height
constraint ofbottomView
.Declaration
Swift
@IBOutlet public var bottomViewHeightConstraint: NSLayoutConstraint!
-
top
constraint ofbottomView
.Declaration
Swift
@IBOutlet public var bottomViewTopConstraint: NSLayoutConstraint!
-
Expand or collapse the cell.
Declaration
Swift
open func expand(_ value: Bool, animated: Bool = default, completion: ((Bool) -> Void)? = default)
Parameters
value
true if the cell must be expanded
animated
should it be animated
-
Apply dark overlay above the cell.
Declaration
Swift
open func dim(_ value: Bool, animated: Bool = default)
Parameters
value
true if the cell must be dimmed
animated
should it be animated