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 of topView. This constraint will be changed according to ElongationConfig.

    Declaration

    Swift

    @IBOutlet public var topViewHeightConstraint: NSLayoutConstraint!
  • top constraint of topView. This constraint will be changed if ElongationConfig 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 in ElongationConfig. Also to this view can be applied ‘parallax’ effect.

    Declaration

    Swift

    @IBOutlet public var scalableView: UIView!
  • centerY constraint of view, to which must be applied parallax effect.

    Declaration

    Swift

    @IBOutlet public var parallaxViewCenterConstraint: NSLayoutConstraint!
  • height constraint of view, to which must be applied parallax 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 of bottomView.

    Declaration

    Swift

    @IBOutlet public var bottomViewHeightConstraint: NSLayoutConstraint!
  • top constraint of bottomView.

    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