Skip to content

Commit

Permalink
Merge pull request facebookarchive#46 from pixyzehn/master
Browse files Browse the repository at this point in the history
Fixed a warning due to fabsf on example
  • Loading branch information
grp committed May 4, 2015
2 parents e21c2e0 + 050c099 commit f4158b8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion Examples/Logo-iOS/ViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,11 @@ - (void)_panned:(UIPanGestureRecognizer *)panRecognizer
CGPoint velocity = [panRecognizer velocityInView:self.view];

if (panRecognizer.state == UIGestureRecognizerStateBegan) {
_panVertical = (fabsf(velocity.y) > fabsf(velocity.x));
#if CGFLOAT_IS_DOUBLE
_panVertical = (fabs(velocity.y) > fabs(velocity.x));
#else
_panVertical = (fabsf(velocity.y) > fabsf(velocity.x));
#endif

if (_panVertical) {
_panStartValue = _shimmeringView.shimmeringSpeed;
Expand Down
2 changes: 1 addition & 1 deletion FBShimmering/FBShimmering.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ typedef NS_ENUM(NSInteger, FBShimmerDirection) {
@protocol FBShimmering <NSObject>

//! @abstract Set this to YES to start shimming and NO to stop. Defaults to NO.
@property (nonatomic, assign, readwrite, getter = isShimmering) BOOL shimmering;
@property (assign, nonatomic, readwrite, getter = isShimmering) BOOL shimmering;

//! @abstract The time interval between shimmerings in seconds. Defaults to 0.4.
@property (assign, nonatomic, readwrite) CFTimeInterval shimmeringPauseDuration;
Expand Down

0 comments on commit f4158b8

Please sign in to comment.