Created
July 13, 2014 20:35
-
-
Save jhildensperger/8228b613156ba4fe1aad to your computer and use it in GitHub Desktop.
Swift out as described by Google's design documentation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import "CAMediaTimingFunction+SwiftOut.h" | |
@implementation CAMediaTimingFunction (SwiftOut) | |
+ (CAMediaTimingFunction *)swiftOut | |
{ | |
CGPoint controlPoint1 = CGPointMake(0.4, 0.0); | |
CGPoint controlPoint2 = CGPointMake(0.2, 1.0); | |
return [self functionWithControlPoints:controlPoint1.x :controlPoint1.y :controlPoint2.x :controlPoint2.y]; | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment