Drag & Drop CollectionView Cells (Swift 5) - Xcode 11 - 2020

preview_player
Показать описание
In this video we will learn how to let users drag and drop collection view cells in Swift 5 and Xcode 11. Allowing cell re-order brings a new level of interaction to your app. We will additionally look at leveraging long press gesture recognizers and updating the data model.

#swift #collectionview #draganddrop

** Get Skillshare free for 2 Months and learn iOS

** Manage all your investments from app earnings on Betterment!

** Grow your own Youtube tech channel with TubeBuddy:
Рекомендации по теме
Комментарии
Автор

This is very helpful. Are there any advantages or disadvantages to performing drag and drop this way instead of using the UICollectionViewDragDelegate or UICollectionViewDropDelegate, specifically for multi-section collection views where not all items are the same size? Using this method, I am having an issue of overlapping cells when I move between sections and cells not maintaining their original item size (I am using a custom layout as well)

huntermeyer
Автор

Thanks for very clear and working solution

Bcori
Автор

Simply Awesome🎉. Thank you for clear explanation 👏

narasimhapoluparthi
Автор

Hello this tutorial was so helpful and all your others as well but I have a question what should I do to drag footer section cell into main collection view

smrkdr
Автор

THIS is a tutorial, not like the other bs by amateurs in YouTube. thanks for teaching us.

---mljd
Автор

Cool stuff! And congrats to 3k Subs :)

JanChristianSwobo
Автор

Cool demo, easy to follow, nice explanation. 🤜🤛

vichhaikan
Автор

thanks, had some difficulties trying to use drag&drop session with the .horizontal layout, this one works fine!

hyggeboi
Автор

thank you for this guidance, Appreciated .!!😀

karishmapatel
Автор

thanks for the help man, great tutorial.

meamanik
Автор

For those of you who are already familiar with swift and just want to learn the drag and drop, skip to 9:22.

CDAAIN
Автор

Hi thank you so much for this tutorial.

I have a horizontal collection view .
Is there a way to drag and drop the cell only horizontally?

FootballRS
Автор

Thank for the video..it's different from others

soumitrabera
Автор

Great video bud. But how would you save the re-order so that when user launches the app next time, the items are in the re-ordered order? With the app am building, items in array come from server. Thanks.

eliaserbenjamin
Автор

When we use custom cell using XIB that time cell is flickering some time

rahulfate
Автор

Can you have view controllers as your collection view cells for example if your making a tabs option on a broswer app? You click on the cell and it will open a viewcontroller with webkit and load the URL.

vighneshramesh
Автор

If you have made content about saving data in ios with different frameworks please assist.
Thanks.

danyalasif
Автор

I follow the steps,
Doesn't show cell, May I know why? Thanks

nickhung
Автор

Please continue creating those amazing videos. Thank you.

problem.solver
Автор

who else likes the video before they watch it! XD

emilybelle