Skip to content
This repository was archived by the owner on Oct 31, 2019. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions DraggableCollectionView.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Pod::Spec.new do |s|
s.name = "DraggableCollectionView"
s.version = "0.1"
s.summary = "Extension for the UICollectionView and UICollectionViewLayout that allows a user to move items with drag and drop."
s.homepage = "https://github.com/lognllc/DraggableCollectionView"
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.authors = [ 'Luke Scott', 'Rex Sheng' ]
s.source = { :git => "https://github.com/angelvasa/DraggableCollectionView.git", :tag => s.version.to_s }
s.platform = :ios, '6.0'
s.requires_arc = true
s.source_files = 'DraggableCollectionView', 'DraggableCollectionView/**/*.{h,m}'

end
11 changes: 11 additions & 0 deletions DraggableCollectionView/Helpers/LSCollectionViewHelper.m
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,17 @@ - (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecogni
return NO;
}


- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch {
if (gestureRecognizer.numberOfTouches < 1) {
return YES;
} else {
return NO;
}
}



- (NSIndexPath *)indexPathForItemClosestToPoint:(CGPoint)point
{
NSArray *layoutAttrsInRect;
Expand Down