Questions tagged [uicollectionviewdropdelegate]

8 questions
3
votes
2 answers

iOS swift 4.2 How to reject or disallow a drop into a UICollectionView

I am trying to enable drag and drop within my app as a mechanism for triggering a function. I have a TableView that displays a list of users and I have a collectionView that can display 3 distinct types of data - but only 1 type at a time. I want…
Jim
  • 55
  • 1
  • 7
3
votes
2 answers

How can I disable cell dragging between UICollectionView sections?

I have two sections in my UICollectionView. I would like to be able to drag cells within each section but not between them. I am using a long press gesture recognizer to animate the cell drag movement so I could check that the drop location is not…
1
vote
1 answer

Using a UITableViewDropCoordinator to animate drops via the dropDelegate with a diffable data source

In iOS 11 Apple introduced native drag and drop to TableViews which provided specifc animations for common drag and drop interactions. Assuming you had returned the correct UIDropProposal it would easily animate a reordering drop in a table…
0
votes
0 answers

How do I change the tintColor of UIDragPreviewParameters

enter image description here How do I change the number's background color to red? UIDragPreviewParameters only provide a background color to modify the translucent cell. I have a collection view and conform the dragDelegate and dropDelegate. here…
0
votes
0 answers

Drop Item into an empty Collection View secion

I'm working with UICollectionView and Drag/Drop Delegates. I need to drop a data source's item into an empty section. I've learned about that and I found out that it's a long-ongoing trouble (e.g. https://developer.apple.com/forums/thread/114010).…
0
votes
1 answer

CollectionView Drag and Drop when embedded in PageViewController

When using drag and drop with a UICollectionView embedded in a UIPageViewController, the delegate immediately triggers didExit when paging. Begin Drag and Drop gesture Page to new view CollectionDropDelegate immediately…
0
votes
0 answers

UICollectionView drag and drop while resizing cell

I want to implement drag and drop feature with UICollectionViewDragDelegate, UICollectionViewDropDelegate it works pretty well but I need to shrink the underneath cells while lifting one cell with drag behavior and shrink back to original size when…
0
votes
1 answer

UICollectionViewDropDelegate: Drag cells on Delete Icon

I have a collectionview and will support the drag and drop functionality of iOS 11. One requirement is that cells need to be removed by dragging them on a garbage bin on the bottom of the view. Is there a another possibility then using a second…
netshark1000
  • 7,245
  • 9
  • 59
  • 116