             index >= 0,
             swipedCard == nil,
             index < verticalCardSwiperView.numberOfItems(inSection: 0)
-        else { return false }
+            else { return false }
         self.isCardRemovalAllowed = false
         let y = CGFloat(index) * (cellHeight + flowLayout.minimumLineSpacing) - topInset
         let point = CGPoint(x: verticalCardSwiperView.contentOffset.x, y: y)

            self.verticalCardSwiperView.trailingAnchor.constraint(equalTo: self.trailingAnchor),
            self.verticalCardSwiperView.topAnchor.constraint(equalTo: self.topAnchor),
            self.verticalCardSwiperView.bottomAnchor.constraint(equalTo: self.bottomAnchor)
            ])
    }

    fileprivate func setCardSwiperInsets() {

        self.verticalCardSwiperView.moveItem(at: convertIndexToIndexPath(for: atIndex), to: convertIndexToIndexPath(for: toIndex))
    }

    /**
     Returns the visible card object at the specified index.
     - parameter index: The index that specifies the item number of the cell.
     - returns: The card object at the corresponding index or nil if the cell is not visible or index is out of range.
     */
    public func cardForItem(at index: Int) -> CardCell? {
        return self.verticalCardSwiperView.cellForItem(at: convertIndexToIndexPath(for: index)) as? CardCell
    }

    private func commonInit() {
        setupVerticalCardSwiperView()
        setupConstraints()
        setCardSwiperInsets()
        setupGestureRecognizer()
    }

    private func performUpdates(updateClosure: () -> Void) {
        UIView.performWithoutAnimation {
