Skip to content
This repository has been archived by the owner on May 26, 2019. It is now read-only.

Haptic feedback for 3D touch enabled devices #56

Open
stasix opened this issue Feb 14, 2017 · 1 comment
Open

Haptic feedback for 3D touch enabled devices #56

stasix opened this issue Feb 14, 2017 · 1 comment

Comments

@stasix
Copy link

stasix commented Feb 14, 2017

It there an option to add 3D touch feedback on drag and drop?

@ThuggishNuggets
Copy link

ThuggishNuggets commented Aug 28, 2017

Yes, but you will have to override the RAReorderableLayoutDelegate methods and add the Haptic feedback yourself.

You could use any of these to hook in and perform the haptic feedback where it feels best to you:

    func collectionView(_ collectionView: UICollectionView, at: IndexPath, willMoveTo toIndexPath: IndexPath)
    func collectionView(_ collectionView: UICollectionView, at: IndexPath, didMoveTo toIndexPath: IndexPath)
    
    func collectionView(_ collectionView: UICollectionView, collectionView layout: RAReorderableLayout, willBeginDraggingItemAt indexPath: IndexPath)
    func collectionView(_ collectionView: UICollectionView, collectionView layout: RAReorderableLayout, didBeginDraggingItemAt indexPath: IndexPath)
    func collectionView(_ collectionView: UICollectionView, collectionView layout: RAReorderableLayout, willEndDraggingItemTo indexPath: IndexPath)
    func collectionView(_ collectionView: UICollectionView, collectionView layout: RAReorderableLayout, didEndDraggingItemTo indexPath: IndexPath)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants