Instance Variables
The following instance variables are available globally.
-
Container of all the subviews.
Declaration
Swift
public var contentView: UIView -
This is the front view which can be scaled if
scaleFactorwas configured inElongationConfig. Also to this view can be applied ‘parallax’ effect.Declaration
Swift
public var scalableView: UIView! -
The view which comes from behind the cell when you tap on the cell.
Declaration
Swift
public var bottomView: UIView! -
View on top half of
contentView. Add here all the views which wont be scaled and must stay on their position.Declaration
Swift
public var topView: UIView! -
topconstraint ofbottomView.Declaration
Swift
public var bottomViewTopConstraint: NSLayoutConstraint!
-
Actually this is
expandedcopy ofElongationCell.Declaration
Swift
open var headerView: ElongationPreview.ElongationHeader!
-
Enable gestures on
ElongationCell&ElongationHeader. These gestures will give ability to expand/dismiss the cell and detail view controller. Default value:trueDeclaration
Swift
public var isSwipeGesturesEnabled: Bool -
Duration of
detailview controller presention animation Default value:0.3Declaration
Swift
public var detailPresetingDuration: TimeInterval -
What
elongationCellshould do on touchDeclaration
Swift
public var cellTouchAction: ElongationPreview.ElongationConfig.CellTouchAction -
Enable
UIPreviewIntearctiononElongationCell. Default value:trueDeclaration
Swift
public var forceTouchPreviewInteractionEnabled: Bool -
Parallax effect factor. Default value:
nilDeclaration
Swift
public var parallaxFactor: CGFloat? -
Should we enable parallax effect on ElongationCell (read-only). Will be
trueifseparatornotnil&& greater than zeroDeclaration
Swift
public var isParallaxEnabled: Bool { get } -
Duration of
detailview controller dismissing animation Default value:0.4Declaration
Swift
public var detailDismissingDuration: TimeInterval -
topViewscale value which will be used for making CGAffineTransform toexpandedstate Default value:0.9Declaration
Swift
public var scaleViewScaleFactor: CGFloat -
Offset of
bottomViewagainsttopViewDefault value:20Declaration
Swift
public var bottomViewOffset: CGFloat -
Actual height of
topView. Default value:200Declaration
Swift
public var topViewHeight: CGFloat -
bottomViewheight value Default value:180Declaration
Swift
public var bottomViewHeight: CGFloat -
Color of custom separator Default value:
.whiteDeclaration
Swift
public var separatorColor: UIColor -
Should we create custom separator view (read-only). Will be
trueifseparatornotnil&& greater than zero.Declaration
Swift
public var customSeparatorEnabled: Bool { get } -
What
elongationHeadershould do on touchDeclaration
Swift
public var headerTouchAction: ElongationPreview.ElongationConfig.HeaderTouchAction -
Enable
UILongPressGestureonElongationCell. This gesture will allow toexpandElongationCellon long tap. By default, this option will be used on devices without 3D Touch technology. Default value:trueDeclaration
Swift
public var longPressGestureEnabled: Bool -
Height of custom separator line between cells in tableView Default value:
nilDeclaration
Swift
public var separatorHeight: CGFloat?
-
IndexPathof expanded cell.Declaration
Swift
public var expandedIndexPath: IndexPath? -
Should cell change it’s state to
expandon tap. Default value:trueDeclaration
Swift
public var shouldExpand: Bool -
Current view state. Default value:
.normalDeclaration
Swift
public var state: ElongationPreview.ElongationViewController.State { get set }
-
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! -
heightconstraint ofbottomView.Declaration
Swift
@IBOutlet public var bottomViewHeightConstraint: NSLayoutConstraint! -
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! -
topconstraint ofbottomView.Declaration
Swift
@IBOutlet public var bottomViewTopConstraint: NSLayoutConstraint! -
Is this cell in
expandedstate.Declaration
Swift
open var isExpanded: Bool -
The view which comes from behind the cell when you tap on the cell.
Declaration
Swift
@IBOutlet public var bottomView: UIView! -
heightconstraint oftopView. This constraint will be changed according toElongationConfig.Declaration
Swift
@IBOutlet public var topViewHeightConstraint: NSLayoutConstraint! -
centerYconstraint of view, to which must be appliedparallaxeffect.Declaration
Swift
@IBOutlet public var parallaxViewCenterConstraint: NSLayoutConstraint! -
topconstraint oftopView. This constraint will be changed ifElongationConfigwas configured for using custom separators.Declaration
Swift
@IBOutlet public var topViewTopConstraint: NSLayoutConstraint! -
heightconstraint of view, to which must be appliedparallaxeffect.Declaration
Swift
@IBOutlet public var parallaxViewHeightConstraint: NSLayoutConstraint!
Instance Variables Reference