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 elongationCell should do on touch

    Declaration

    Swift

    public var cellTouchAction: ElongationPreview.ElongationConfig.CellTouchAction
  • What elongationHeader should do on touch

    Declaration

    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: true

    Declaration

    Swift

    public var isSwipeGesturesEnabled: Bool
  • Enable UIPreviewIntearction on ElongationCell. Default value: true

    Declaration

    Swift

    public var forceTouchPreviewInteractionEnabled: Bool
  • Enable UILongPressGesture on ElongationCell. This gesture will allow to expand ElongationCell on long tap. By default, this option will be used on devices without 3D Touch technology. Default value: true

    Declaration

    Swift

    public var longPressGestureEnabled: Bool
  • Actual height of topView. Default value: 200

    Declaration

    Swift

    public var topViewHeight: CGFloat
  • topView scale value which will be used for making CGAffineTransform to expanded state Default value: 0.9

    Declaration

    Swift

    public var scaleViewScaleFactor: CGFloat
  • Parallax effect factor. Default value: nil

    Declaration

    Swift

    public var parallaxFactor: CGFloat?
  • Should we enable parallax effect on ElongationCell (read-only). Will be true if separator not nil && greater than zero

    Declaration

    Swift

    public var isParallaxEnabled: Bool { get }
  • Offset of bottomView against topView Default value: 20

    Declaration

    Swift

    public var bottomViewOffset: CGFloat
  • bottomView height value Default value: 180

    Declaration

    Swift

    public var bottomViewHeight: CGFloat
  • Height of custom separator line between cells in tableView Default value: nil

    Declaration

    Swift

    public var separatorHeight: CGFloat?
  • Color of custom separator Default value: .white

    Declaration

    Swift

    public var separatorColor: UIColor
  • Should we create custom separator view (read-only). Will be true if separator not nil && greater than zero.

    Declaration

    Swift

    public var customSeparatorEnabled: Bool { get }
  • Duration of detail view controller presention animation Default value: 0.3

    Declaration

    Swift

    public var detailPresetingDuration: TimeInterval
  • Duration of detail view controller dismissing animation Default value: 0.4

    Declaration

    Swift

    public var detailDismissingDuration: TimeInterval