-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:avreolko/VCReorderableStackView
- Loading branch information
Showing
1 changed file
with
8 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,17 @@ | ||
# VCReorderableStackView | ||
Very simple implementation of drag&drop stack view | ||
|
||
Very simple implementation of drag&drop stack view. | ||
There is a delegate protocol, that sends notification every time, when views swapped. | ||
## Demo | ||
![reorderable_demo](https://user-images.githubusercontent.com/5366222/77224811-d1ab7880-6b9b-11ea-8c24-73a9476e7f10.gif) | ||
|
||
## Getting started | ||
There is a delegate protocol, that sends notification every time, when views swapped | ||
|
||
```swift | ||
public protocol IReorderableStackViewDelegate: AnyObject { | ||
func swapped(index: Int, with: Int) | ||
} | ||
``` | ||
|
||
You can Install it through SPM 📦 | ||
## Installation | ||
📦 SPM |