VKRearrangableStackView
public class VKRearrangableStackView : UIStackView, UIGestureRecognizerDelegate
-
Whether or not the subviews can be picked and reordered.
Declaration
Swift
public var reorderingEnabled: Bool { get set } -
The delegate for reordering.
Declaration
Swift
public var delegate: VKRearrangableStackViewDelegate? -
Whether or not to apply
clipsToBounds = trueto all of the subviews during reordering. Default isfalse. The corner radii feature was no longer working and has been removed.Declaration
Swift
@available(*, deprecated) public var clipsToBoundsWhileReordering: Bool -
The relative scale of the held view’s snapshot during reordering to its subview’s canonical size. Default is
1.1Declaration
Swift
public var temporaryViewScale: CGFloat -
The releative scale of the other subviews’s size during reordering. Default is
0.95Declaration
Swift
public var otherViewsScale: CGFloat -
The alpha of the held view’s snapshot curing reordering. Defaults is
0.9Declaration
Swift
public var temporaryViewAlpha: CGFloat -
The gap created once the long press drag is triggered. Default is
5Declaration
Swift
public var dragHintSpacing: CGFloat -
The longPress duration for activating reordering. Default is
0.2secondsDeclaration
Swift
public var longPressMinimumPressDuration: Double { get set } -
Determines whether or not the axis is horizontal.
Declaration
Swift
public var isHorizontal: Bool { get } -
Determines whether or not the axis is vertical.
Declaration
Swift
public var isVertical: Bool { get } -
Declaration
Swift
public init() -
Declaration
Swift
required public init(coder: NSCoder) -
Declaration
Swift
override public func addArrangedSubview(_ view: UIView) -
Declaration
Swift
public func prepareForReordering() -
Declaration
Swift
public func cleanupUpAfterReordering() -
Declaration
Swift
override public func gestureRecognizerShouldBegin(_ gestureRecognizer: UIGestureRecognizer) -> Bool
VKRearrangableStackView Class Reference