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

Use __tg_fabs() instead of fabs(). #60

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions PDTSimpleCalendar/PDTSimpleCalendarViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#import "PDTSimpleCalendarViewFlowLayout.h"
#import "PDTSimpleCalendarViewCell.h"
#import "PDTSimpleCalendarViewHeader.h"

#import <tgmath.h>

const CGFloat PDTSimpleCalendarOverlaySize = 14.0f;

Expand Down Expand Up @@ -413,7 +413,7 @@ - (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollection
- (void)scrollViewWillEndDragging:(UIScrollView *)scrollView withVelocity:(CGPoint)velocity targetContentOffset:(inout CGPoint *)targetContentOffset
{
//We only display the overlay view if there is a vertical velocity
if ( fabsf(velocity.y) > 0.0f) {
if ( __tg_fabs(velocity.y) > 0.0f) {
if (self.overlayView.alpha < 1.0) {
[UIView animateWithDuration:0.25 animations:^{
[self.overlayView setAlpha:1.0];
Expand Down