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
expandedstate.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! -
heightconstraint oftopView. This constraint will be changed according toElongationConfig.Declaration
Swift
@IBOutlet public var topViewHeightConstraint: NSLayoutConstraint! -
topconstraint oftopView. This constraint will be changed ifElongationConfigwas configured for using custom separators.Declaration
Swift
@IBOutlet public var topViewTopConstraint: NSLayoutConstraint! -
This is the front view which can be scaled if
scaleFactorwas configured inElongationConfig. Also to this view can be applied ‘parallax’ effect.Declaration
Swift
@IBOutlet public var scalableView: UIView! -
centerYconstraint of view, to which must be appliedparallaxeffect.Declaration
Swift
@IBOutlet public var parallaxViewCenterConstraint: NSLayoutConstraint! -
heightconstraint of view, to which must be appliedparallaxeffect.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! -
heightconstraint ofbottomView.Declaration
Swift
@IBOutlet public var bottomViewHeightConstraint: NSLayoutConstraint! -
topconstraint 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
valuetrue if the cell must be expanded
animatedshould it be animated
-
Apply dark overlay above the cell.
Declaration
Swift
open func dim(_ value: Bool, animated: Bool = default)Parameters
valuetrue if the cell must be dimmed
animatedshould it be animated
ElongationCell Class Reference