DEV Community

Cover image for iOS — Drag and Drop using CollectionView
Raksha for Canopas Software

Posted on

iOS — Drag and Drop using CollectionView

Do You Know How to Implement Drag and Drop Using CollectionView in iOS?

In this blog post, we will implement Drag and Drop functionality with UICollectionView using swift.

Today, we’ll create a food order book, that shows a list of food items with the list of persons. Users can select food items and drop them off to the person paying for them.

I’ve tried to make this Drag and Drop functionality as easy as possible.
At the end of this blog post, we’ll have UI something like this.

We’ll divide implementation into 3 simple steps to make each step easy to understand.
Design Views to show food items and users
Implement drag delegate
Implement drop delegate

For step by step guide, visit canopas blog.

Image of Timescale

Timescale – the developer's data platform for modern apps, built on PostgreSQL

Timescale Cloud is PostgreSQL optimized for speed, scale, and performance. Over 3 million IoT, AI, crypto, and dev tool apps are powered by Timescale. Try it free today! No credit card required.

Try free

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay