VCReorderableStackView

A simple implementation of the drag-and-drop stack view

Demo

reorderable_demo

Installation

Install with SPM 📦

Usage

The IReorderableStackViewDelegate protocol fires a callback whenever views are swapped

public protocol IReorderableStackViewDelegate: AnyObject {
    func swapped(index: Int, with: Int)
}