You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to add a trash can at the bottom of the view so that when an item is being dragged on it, the item will be deleted from the array? Thanks for the help.
The text was updated successfully, but these errors were encountered:
These 2 lines query the collection view for the index the current selection is over on, what you could do is before this query, see if you are over trash can. If you are, you might want to update the collection view state to reflect the changes. If not, just let the system continue to manage the reordering behavior. You probably want to expands the delegate system to keep your codebase clean, unless those behaviour are general enough.
Note that this is a pretty tight loop so keep thing short. :)
Is there a way to add a trash can at the bottom of the view so that when an item is being dragged on it, the item will be deleted from the array? Thanks for the help.
The text was updated successfully, but these errors were encountered: