Skip to content

Commit

Permalink
Fix fabsf warnings for Xcode 6.3+
Browse files Browse the repository at this point in the history
  • Loading branch information
designatednerd committed May 12, 2015
1 parent f946139 commit da4d3ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Library/DNSSwipeableCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ - (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecogni
CGPoint velocity = [panGesture velocityInView:self.myContentView];
if (velocity.x > 0) {
return YES;
} else if (fabsf(velocity.x) > fabsf(velocity.y)) {
} else if (fabs(velocity.x) > fabs(velocity.y)) {
return NO;
}
}
Expand All @@ -409,7 +409,7 @@ - (void)panThisCell:(UIPanGestureRecognizer *)recognizer
CGPoint velocity = [recognizer velocityInView:self.myContentView];

//Check what direction the swipe is moving by checking the velocity
BOOL movingHorizontally = fabsf(velocity.y) < fabsf(velocity.x);
BOOL movingHorizontally = fabs(velocity.y) < fabs(velocity.x);

switch (recognizer.state) {
case UIGestureRecognizerStateBegan:
Expand Down

0 comments on commit da4d3ed

Please sign in to comment.