ElongationConfig
public struct ElongationConfig
Whole module views configuration
-
Empty public initializer.
Declaration
Swift
public init() -
Shared instance. Override this property to apply changes.
Declaration
Swift
public static var shared: ElongationPreview.ElongationConfig
-
What
elongationCellshould do on touchDeclaration
Swift
public var cellTouchAction: ElongationPreview.ElongationConfig.CellTouchAction -
What
elongationHeadershould do on touchDeclaration
Swift
public var headerTouchAction: ElongationPreview.ElongationConfig.HeaderTouchAction -
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 -
Enable
UIPreviewIntearctiononElongationCell. Default value:trueDeclaration
Swift
public var forceTouchPreviewInteractionEnabled: Bool -
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
-
Actual height of
topView. Default value:200Declaration
Swift
public var topViewHeight: CGFloat -
topViewscale value which will be used for making CGAffineTransform toexpandedstate Default value:0.9Declaration
Swift
public var scaleViewScaleFactor: CGFloat -
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 } -
Offset of
bottomViewagainsttopViewDefault value:20Declaration
Swift
public var bottomViewOffset: CGFloat -
bottomViewheight value Default value:180Declaration
Swift
public var bottomViewHeight: CGFloat -
Height of custom separator line between cells in tableView Default value:
nilDeclaration
Swift
public var separatorHeight: 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 } -
Duration of
detailview controller presention animation Default value:0.3Declaration
Swift
public var detailPresetingDuration: TimeInterval -
Duration of
detailview controller dismissing animation Default value:0.4Declaration
Swift
public var detailDismissingDuration: TimeInterval
ElongationConfig Struct Reference