Outstanding, Ray! In my opinion, this is a better and much clearer intro to using Drag and Drop with UITableView than was presented at WWDC. Your tutorials are the best - thatās why Iāve been a long-time subscriber. I look forward to your next screencast!
Great tutorial Ray! Very nice to have drag and drop tutorials out there already!! Anyways, Iāve implemented pretty much the same code on my performDropWith coordinator for reorderring my colletion view, but when I release my dragged item at the destinationIndexPath my sourceIndexPath blinks, Is this the normal behaviour? Thanks!
I think thereās a piece missing in the first part of this video. It didnāt work for me until I set the table viewās drag interaction property. I donāt recall hearing it/seeing it in his code example.
tableView.dragInteractionEnabled = YES;
It took a minute for me to figure out why it wasnāt working the first time Ray says run the program and it should work. (3:23)
Is there a way to control the sensitivity of when the drag gesture starts? Drag of an item sometimes starts in a collection view when the user is actually trying to just scroll. How to go about fixing it?
Sorry for the very late question, but getting an error āAmbiguous reference to member ādrop(_:to:)āā in the PetsViewController.swift file at: let context = coordinator.drop(item.dragItem, toPlaceholderInsertedAt: destinationIndexPath, withReuseIdentifier: "PetCell", rowHeight: 110, cellUpdateHandler: { cell in cell.textLabel?.text = "Loading..." })
This may be a problem with Swift 5, but Appleās documentation still references it as in the screenCast. Any help greatly appreciated!