Get Updates By E-mail 

Article Written By:
Johann Dowa

iOS Library For Adding Drag-And-Drop With Auto-Scrolling And UIPasteBoard Support

Some time ago I mentioned a UICollectionView extension that allowed you to add drag-and-drop reordering to UICollectionView based grids.

Here’s an open source library that makes it easy to add drag and drop to UIViews with a number of nice features called AtkDragAndDrop by Rick Boykin.

AtkDragAndDrop makes it easy to set up views as drag and drop source and destination zones, provides a shadowing feature to illustrate a view being dragged, allows you to specify a UIGestureRecognizer for drag recognition, works with the UIPasteBoard for data passing, and a really nice auto-scrolling feature as you drag in a UIScrollView.

Included is an example showing how to set up some basic drag and drop views and zones.

A screenshot of some images from the included example app:
ATKDragAndDrop-1  ATKDragAndDrop-2

You can find AtkDragAndDrop (Asymptotik Drag And Drop) on Github here.

A nice easy way to create drag and drop views.

Thanks to Chris for the submission.

Submit A Resource

Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?

You can submit the url here.

The resources we feel will appeal to our readers the most will be posted on the front page.