Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to prevent to collectionview drag #21

Closed
kirti301290 opened this issue Jan 23, 2018 · 3 comments
Closed

how to prevent to collectionview drag #21

kirti301290 opened this issue Jan 23, 2018 · 3 comments

Comments

@kirti301290
Copy link

hello
i have two collectionview
user can drag from one collectionview to Second collectionview but how to prevent from second collectionview to one collectionview
thanks

@mmick66
Copy link
Owner

mmick66 commented Jan 23, 2018

At the moment this is not implemented. If you get some time to add it I will be very happy to merge your pull request.

@mmick66 mmick66 closed this as completed Jan 23, 2018
@mmick66 mmick66 reopened this Jan 23, 2018
@kirti301290
Copy link
Author

i tried to add this functionality but unable to implemented this so if you a have time pls implement this
thanks

@mmick66
Copy link
Owner

mmick66 commented Jan 30, 2018

Ok, It was a long time since I had touched the code. The functionality seems to exist. Please subclass the KDDragAndDropCollectionView and override

func canDropAtRect(_ rect : CGRect) -> Bool {
    return super.canDropAtRect && self.customCanDrop(rect)
}
func customCanDrop(_ rect : CGRect) -> Bool {
    return false
}

@mmick66 mmick66 closed this as completed Jan 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants