Skip to content

Drag views to reorder them in a SwiftUI container

Notifications You must be signed in to change notification settings

DEV1ANT7/ReordableViews

 
 

Repository files navigation

ReordableViews

GIF

This is an experimental Swift Package that implements "reorder on drag" behaviour for SwiftUI views. I made this since I didn't like the SwiftUI's inbuilt drag and drop implementation.

The main component of the package is ReordableForEach struct which is very similar to ForEach. ReordableVGrid implements a version of the LazyVGrid (shown in the video). If you want to use it, see docs in the code or the example app.

About

Drag views to reorder them in a SwiftUI container

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Swift 100.0%