├── TFAnimation
├── Demo
│ ├── demo.gif
│ ├── Assets.xcassets
│ │ └── AppIcon.appiconset
│ │ │ └── Contents.json
│ ├── Info.plist
│ ├── Base.lproj
│ │ ├── LaunchScreen.storyboard
│ │ └── Main.storyboard
│ ├── ViewController.swift
│ └── AppDelegate.swift
└── TFAnimation
│ ├── TFBasicAnimation.swift
│ └── TFEasingFunction.swift
├── TFAnimation.xcodeproj
├── project.xcworkspace
│ └── contents.xcworkspacedata
├── xcuserdata
│ └── luo.xcuserdatad
│ │ └── xcschemes
│ │ ├── xcschememanagement.plist
│ │ └── TFAnimation.xcscheme
└── project.pbxproj
└── README.md
/TFAnimation/Demo/demo.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/luowenxing/TFAnimation/HEAD/TFAnimation/Demo/demo.gif
--------------------------------------------------------------------------------
/TFAnimation.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/TFAnimation.xcodeproj/xcuserdata/luo.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | TFAnimation.xcscheme
8 |
9 | orderHint
10 | 0
11 |
12 |
13 | SuppressBuildableAutocreation
14 |
15 | B15D942B1D019F8D0038C9B8
16 |
17 | primary
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # TFAnimation
2 | The `timingFunction` of `CAAnimation` only allow us create a named or cubic-bezier `CAMediaTimingFunction`.Now the `TFAnimation` is a light weight implementation which enhance `CABasicAnimation` with custom `timingFunction` whose domain should be between 0 and 1 like cubic-bezier.
3 |
4 | # Demo
5 | 
6 |
7 | A simple sin curve like animation with timingFunction of f(t) = sin (4π * t)
8 |
9 | # Usage
10 | * Drag TFAnimation folder to your project
11 | * Use it just as CABasicAnimation except assign `timeFunction` with a block `(CGFloat) -> CGFloat` rather than assign `timingFunction`
12 | ```
13 | let animationY = TFBasicAnimation()
14 | animationY.keyPath = "position.y"
15 | animationY.fromValue = 0
16 | animationY.byValue = height / 4
17 | animationY.duration = 5.0
18 | animationY.timeFunction = {
19 | t in
20 | return t * t
21 | }
22 | ```
23 | * There are some pre-defined time function for convience,see `TFEasingFunction.swift`.
24 |
25 | # Reference & Inspired
26 | * [animations-explained](https://www.objc.io/issues/12-animations/animations-explained/)
27 | * [RBBAnimation](https://github.com/robb/RBBAnimation)
28 |
--------------------------------------------------------------------------------
/TFAnimation/Demo/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "iphone",
5 | "size" : "29x29",
6 | "scale" : "2x"
7 | },
8 | {
9 | "idiom" : "iphone",
10 | "size" : "29x29",
11 | "scale" : "3x"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "size" : "40x40",
16 | "scale" : "2x"
17 | },
18 | {
19 | "idiom" : "iphone",
20 | "size" : "40x40",
21 | "scale" : "3x"
22 | },
23 | {
24 | "idiom" : "iphone",
25 | "size" : "60x60",
26 | "scale" : "2x"
27 | },
28 | {
29 | "idiom" : "iphone",
30 | "size" : "60x60",
31 | "scale" : "3x"
32 | },
33 | {
34 | "idiom" : "ipad",
35 | "size" : "29x29",
36 | "scale" : "1x"
37 | },
38 | {
39 | "idiom" : "ipad",
40 | "size" : "29x29",
41 | "scale" : "2x"
42 | },
43 | {
44 | "idiom" : "ipad",
45 | "size" : "40x40",
46 | "scale" : "1x"
47 | },
48 | {
49 | "idiom" : "ipad",
50 | "size" : "40x40",
51 | "scale" : "2x"
52 | },
53 | {
54 | "idiom" : "ipad",
55 | "size" : "76x76",
56 | "scale" : "1x"
57 | },
58 | {
59 | "idiom" : "ipad",
60 | "size" : "76x76",
61 | "scale" : "2x"
62 | },
63 | {
64 | "idiom" : "ipad",
65 | "size" : "83.5x83.5",
66 | "scale" : "2x"
67 | }
68 | ],
69 | "info" : {
70 | "version" : 1,
71 | "author" : "xcode"
72 | }
73 | }
--------------------------------------------------------------------------------
/TFAnimation/Demo/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIMainStoryboardFile
28 | Main
29 | UIRequiredDeviceCapabilities
30 |
31 | armv7
32 |
33 | UISupportedInterfaceOrientations
34 |
35 | UIInterfaceOrientationPortrait
36 | UIInterfaceOrientationLandscapeLeft
37 | UIInterfaceOrientationLandscapeRight
38 |
39 | UISupportedInterfaceOrientations~ipad
40 |
41 | UIInterfaceOrientationPortrait
42 | UIInterfaceOrientationPortraitUpsideDown
43 | UIInterfaceOrientationLandscapeLeft
44 | UIInterfaceOrientationLandscapeRight
45 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/TFAnimation/Demo/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/TFAnimation/Demo/ViewController.swift:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.swift
3 | // UIViewAnimation
4 | //
5 | // Created by Luo on 6/2/16.
6 | // Copyright © 2016 Luo. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | class ViewController: UIViewController {
12 |
13 | @IBOutlet weak var rect: UIView!
14 | override func viewDidLoad() {
15 | super.viewDidLoad()
16 | // Do any additional setup after loading the view, typically from a nib.
17 | }
18 |
19 | override func viewDidAppear(animated: Bool) {
20 | self.animation()
21 | }
22 | @IBAction func btnReplay(sender: AnyObject) {
23 | self.animation()
24 | }
25 |
26 | private func animation() {
27 | let width = self.view.frame.width - self.rect.frame.width
28 | let height = self.view.frame.height
29 |
30 | let animationX = CABasicAnimation()
31 | animationX.keyPath = "position.x"
32 | animationX.fromValue = 0
33 | animationX.toValue = width
34 | animationX.duration = 5.0
35 | animationX.additive = true
36 |
37 | let animationY = TFBasicAnimation()
38 | animationY.keyPath = "position.y"
39 | animationY.fromValue = 0
40 | animationY.byValue = height / 4
41 | animationY.duration = 5.0
42 | animationY.additive = true
43 | animationY.timeFunction = TFEasingFunctionEaseSin(2)
44 | let group = CAAnimationGroup()
45 | group.animations = [animationX,animationY]
46 | group.duration = 5.0
47 | group.beginTime = 0.0
48 |
49 | self.rect.layer.addAnimation(group, forKey: "TF")
50 | }
51 | override func didReceiveMemoryWarning() {
52 | super.didReceiveMemoryWarning()
53 | // Dispose of any resources that can be recreated.
54 | }
55 | }
56 |
57 |
58 |
59 |
--------------------------------------------------------------------------------
/TFAnimation/TFAnimation/TFBasicAnimation.swift:
--------------------------------------------------------------------------------
1 | //
2 | // TFAnimation.swift
3 | // UIViewAnimation
4 | //
5 | // Created by Luo on 6/3/16.
6 | // Copyright © 2016 Luo. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | typealias TFBasicAnimationFunction = (CGFloat) -> CGFloat
12 |
13 | class TFBasicAnimation : CAKeyframeAnimation {
14 |
15 | var timeFunction: TFBasicAnimationFunction? {
16 | didSet {
17 | self.setValues()
18 | }
19 | }
20 |
21 | var fromValue: AnyObject? {
22 | didSet {
23 | self.setValues()
24 | }
25 | }
26 | var toValue: AnyObject? {
27 | didSet {
28 | self.setValues()
29 | }
30 | }
31 | var byValue: AnyObject? {
32 | didSet {
33 | self.setValues()
34 | }
35 | }
36 |
37 |
38 | private var valuePairs : (CGFloat,CGFloat)? {
39 | get {
40 | if let from = fromValue as? CGFloat,to = toValue as? CGFloat {
41 | return (from,to)
42 | } else if let from = fromValue as? CGFloat,by = byValue as? CGFloat{
43 | return (from,from + by)
44 | } else if let to = toValue as? CGFloat,by = byValue as? CGFloat{
45 | return (to - by,to)
46 | }
47 | return nil
48 | }
49 | }
50 |
51 | private func setValues() {
52 | let fps = 60
53 | let steps = Int((CGFloat(fps) * CGFloat(self.duration)))
54 | let timeStep = 1.0 / CGFloat(steps)
55 | var values = [CGFloat]()
56 | var keyTimes = [NSNumber]()
57 | var time:CGFloat = 0
58 | if let (from,to) = self.valuePairs {
59 | if let timeFunction = self.timeFunction {
60 | for _ in 0.. Bool {
18 | // Override point for customization after application launch.
19 | return true
20 | }
21 |
22 | func applicationWillResignActive(application: UIApplication) {
23 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
24 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
25 | }
26 |
27 | func applicationDidEnterBackground(application: UIApplication) {
28 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
30 | }
31 |
32 | func applicationWillEnterForeground(application: UIApplication) {
33 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
34 | }
35 |
36 | func applicationDidBecomeActive(application: UIApplication) {
37 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
38 | }
39 |
40 | func applicationWillTerminate(application: UIApplication) {
41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
42 | }
43 |
44 |
45 | }
46 |
47 |
--------------------------------------------------------------------------------
/TFAnimation/TFAnimation/TFEasingFunction.swift:
--------------------------------------------------------------------------------
1 | //
2 | // TFAnimationFunction.swift
3 | // UIViewAnimation
4 | //
5 | // Created by Luo on 6/3/16.
6 | // Copyright © 2016 Luo. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | typealias TFEasingFunction = TFBasicAnimationFunction
12 |
13 | infix operator ^^ { }
14 | func ^^ (radix: CGFloat, power: CGFloat) -> CGFloat {
15 | return CGFloat(pow(Double(radix), Double(power)))
16 | }
17 |
18 | let TFEasingFunctionLinear:TFEasingFunction = {
19 | $0
20 | }
21 |
22 | let TFEasingFunctionEaseInQuad:TFEasingFunction = {
23 | $0 ^^ 2
24 | }
25 |
26 | let TFEasingFunctionEaseOutQuad:TFEasingFunction = {
27 | $0 * (2 - $0)
28 | }
29 |
30 | let TFEasingFunctionEaseInOutQuad:TFEasingFunction = {
31 | if ($0 < 0.5) {
32 | return 2 * $0 * $0
33 | } else {
34 | return -1 + (4 - 2 * $0) * $0
35 | }
36 | }
37 |
38 | let TFEasingFunctionEaseInCubic:TFEasingFunction = {
39 | $0 ^^ 3
40 | }
41 |
42 | let TFEasingFunctionEaseOutCubic:TFEasingFunction = {
43 | ($0 - 1) ^^ 3 + 1
44 | }
45 |
46 | let TFEasingFunctionEaseInOutCubic:TFEasingFunction = {
47 | if ($0 < 0.5) {
48 | return 4 * ($0 ^^ 3)
49 | } else {
50 | return ($0 - 1) * ((2 * $0 - 2) ^^ 2) + 1;
51 | }
52 | }
53 |
54 | let TFEasingFunctionEaseInQuart:TFEasingFunction = {
55 | $0 ^^ 4
56 | }
57 |
58 | let TFEasingFunctionEaseOutQuart:TFEasingFunction = {
59 | 1 - (($0 - 1) ^^ 4)
60 | }
61 |
62 | let TFEasingFunctionEaseInOutQuart:TFEasingFunction = {
63 | if ($0 < 0.5) {
64 | return 8 * ($0 ^^ 4)
65 | } else {
66 | return -1 / 2 * ((2 * $0 - 2) ^^ 4) + 1
67 | }
68 | }
69 |
70 | let TFEasingFunctionEaseInBounce:TFEasingFunction = {
71 | return 1.0 - TFEasingFunctionEaseOutBounce(1.0 - $0)
72 | }
73 |
74 | let TFEasingFunctionEaseOutBounce:TFEasingFunction = {
75 | if ($0 < 4.0 / 11.0) {
76 | return pow(11.0 / 4.0, 2) * pow($0, 2)
77 | }
78 | if ($0 < 8.0 / 11.0) {
79 | return 3.0 / 4.0 + pow(11.0 / 4.0, 2) * pow($0 - 6.0 / 11.0, 2)
80 | }
81 | if ($0 < 10.0 / 11.0) {
82 | return 15.0 / 16.0 + pow(11.0 / 4.0, 2) * pow($0 - 9.0 / 11.0, 2)
83 | }
84 | return 63.0 / 64.0 + pow(11.0 / 4.0, 2) * pow($0 - 21.0 / 22.0, 2)
85 | }
86 |
87 | let TFEasingFunctionEaseInExpo:TFEasingFunction = {
88 | return $0 == 0 ? 0.0 : (2 ^^ (10 * ($0 - 1)))
89 | }
90 |
91 | let TFEasingFunctionEaseOutExpo:TFEasingFunction = {
92 | return $0 == 1.0 ? 1 : 1 - ( 2 ^^ ( -10 * $0))
93 | }
94 |
95 | let TFEasingFunctionEaseInOutExpo:TFEasingFunction = {
96 | if ($0 == 0) {
97 | return 0.0
98 | }
99 | if ($0 == 1) {
100 | return 1.0
101 | }
102 | if ($0 < 0.5) {
103 | return (2 ^^ (10 * (2 * $0 - 1))) / 2;
104 | } else {
105 | return 1 - (2 ^^ (-10 * (2 * $0 - 1))) / 2;
106 | }
107 | }
108 |
109 | func TFEasingFunctionEaseSin(Period:Int) -> TFEasingFunction {
110 | return {
111 | -CGFloat(sin(2.0 * M_PI * Double(Period) * Double($0)))
112 | }
113 | }
114 |
115 |
116 |
--------------------------------------------------------------------------------
/TFAnimation.xcodeproj/xcuserdata/luo.xcuserdatad/xcschemes/TFAnimation.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
32 |
33 |
39 |
40 |
41 |
42 |
43 |
44 |
54 |
56 |
62 |
63 |
64 |
65 |
66 |
67 |
73 |
75 |
81 |
82 |
83 |
84 |
86 |
87 |
90 |
91 |
92 |
--------------------------------------------------------------------------------
/TFAnimation/Demo/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
--------------------------------------------------------------------------------
/TFAnimation.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | B15D94591D019FFA0038C9B8 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = B15D94501D019FFA0038C9B8 /* AppDelegate.swift */; };
11 | B15D945A1D019FFA0038C9B8 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = B15D94511D019FFA0038C9B8 /* Assets.xcassets */; };
12 | B15D945B1D019FFA0038C9B8 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = B15D94521D019FFA0038C9B8 /* LaunchScreen.storyboard */; };
13 | B15D945C1D019FFA0038C9B8 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = B15D94541D019FFA0038C9B8 /* Main.storyboard */; };
14 | B15D945D1D019FFA0038C9B8 /* Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = B15D94561D019FFA0038C9B8 /* Info.plist */; };
15 | B15D945E1D019FFA0038C9B8 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = B15D94571D019FFA0038C9B8 /* ViewController.swift */; };
16 | B15D94611D01A0700038C9B8 /* TFBasicAnimation.swift in Sources */ = {isa = PBXBuildFile; fileRef = B15D945F1D01A0700038C9B8 /* TFBasicAnimation.swift */; };
17 | B15D94621D01A0700038C9B8 /* TFEasingFunction.swift in Sources */ = {isa = PBXBuildFile; fileRef = B15D94601D01A0700038C9B8 /* TFEasingFunction.swift */; };
18 | /* End PBXBuildFile section */
19 |
20 | /* Begin PBXFileReference section */
21 | B15D942C1D019F8D0038C9B8 /* TFAnimation.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = TFAnimation.app; sourceTree = BUILT_PRODUCTS_DIR; };
22 | B15D94501D019FFA0038C9B8 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
23 | B15D94511D019FFA0038C9B8 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
24 | B15D94531D019FFA0038C9B8 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
25 | B15D94551D019FFA0038C9B8 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
26 | B15D94561D019FFA0038C9B8 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
27 | B15D94571D019FFA0038C9B8 /* ViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; };
28 | B15D945F1D01A0700038C9B8 /* TFBasicAnimation.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TFBasicAnimation.swift; sourceTree = ""; };
29 | B15D94601D01A0700038C9B8 /* TFEasingFunction.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TFEasingFunction.swift; sourceTree = ""; };
30 | /* End PBXFileReference section */
31 |
32 | /* Begin PBXFrameworksBuildPhase section */
33 | B15D94291D019F8D0038C9B8 /* Frameworks */ = {
34 | isa = PBXFrameworksBuildPhase;
35 | buildActionMask = 2147483647;
36 | files = (
37 | );
38 | runOnlyForDeploymentPostprocessing = 0;
39 | };
40 | /* End PBXFrameworksBuildPhase section */
41 |
42 | /* Begin PBXGroup section */
43 | B15D94231D019F8D0038C9B8 = {
44 | isa = PBXGroup;
45 | children = (
46 | B15D942E1D019F8D0038C9B8 /* TFAnimation */,
47 | B15D942D1D019F8D0038C9B8 /* Products */,
48 | );
49 | sourceTree = "";
50 | };
51 | B15D942D1D019F8D0038C9B8 /* Products */ = {
52 | isa = PBXGroup;
53 | children = (
54 | B15D942C1D019F8D0038C9B8 /* TFAnimation.app */,
55 | );
56 | name = Products;
57 | sourceTree = "";
58 | };
59 | B15D942E1D019F8D0038C9B8 /* TFAnimation */ = {
60 | isa = PBXGroup;
61 | children = (
62 | B15D944F1D019FFA0038C9B8 /* Demo */,
63 | B15D94581D019FFA0038C9B8 /* TFAnimation */,
64 | );
65 | path = TFAnimation;
66 | sourceTree = "";
67 | };
68 | B15D944F1D019FFA0038C9B8 /* Demo */ = {
69 | isa = PBXGroup;
70 | children = (
71 | B15D94501D019FFA0038C9B8 /* AppDelegate.swift */,
72 | B15D94511D019FFA0038C9B8 /* Assets.xcassets */,
73 | B15D94521D019FFA0038C9B8 /* LaunchScreen.storyboard */,
74 | B15D94541D019FFA0038C9B8 /* Main.storyboard */,
75 | B15D94561D019FFA0038C9B8 /* Info.plist */,
76 | B15D94571D019FFA0038C9B8 /* ViewController.swift */,
77 | );
78 | path = Demo;
79 | sourceTree = "";
80 | };
81 | B15D94581D019FFA0038C9B8 /* TFAnimation */ = {
82 | isa = PBXGroup;
83 | children = (
84 | B15D945F1D01A0700038C9B8 /* TFBasicAnimation.swift */,
85 | B15D94601D01A0700038C9B8 /* TFEasingFunction.swift */,
86 | );
87 | path = TFAnimation;
88 | sourceTree = "";
89 | };
90 | /* End PBXGroup section */
91 |
92 | /* Begin PBXNativeTarget section */
93 | B15D942B1D019F8D0038C9B8 /* TFAnimation */ = {
94 | isa = PBXNativeTarget;
95 | buildConfigurationList = B15D943E1D019F8D0038C9B8 /* Build configuration list for PBXNativeTarget "TFAnimation" */;
96 | buildPhases = (
97 | B15D94281D019F8D0038C9B8 /* Sources */,
98 | B15D94291D019F8D0038C9B8 /* Frameworks */,
99 | B15D942A1D019F8D0038C9B8 /* Resources */,
100 | );
101 | buildRules = (
102 | );
103 | dependencies = (
104 | );
105 | name = TFAnimation;
106 | productName = TFAnimation;
107 | productReference = B15D942C1D019F8D0038C9B8 /* TFAnimation.app */;
108 | productType = "com.apple.product-type.application";
109 | };
110 | /* End PBXNativeTarget section */
111 |
112 | /* Begin PBXProject section */
113 | B15D94241D019F8D0038C9B8 /* Project object */ = {
114 | isa = PBXProject;
115 | attributes = {
116 | LastSwiftUpdateCheck = 0730;
117 | LastUpgradeCheck = 0730;
118 | ORGANIZATIONNAME = Luo;
119 | TargetAttributes = {
120 | B15D942B1D019F8D0038C9B8 = {
121 | CreatedOnToolsVersion = 7.3;
122 | };
123 | };
124 | };
125 | buildConfigurationList = B15D94271D019F8D0038C9B8 /* Build configuration list for PBXProject "TFAnimation" */;
126 | compatibilityVersion = "Xcode 3.2";
127 | developmentRegion = English;
128 | hasScannedForEncodings = 0;
129 | knownRegions = (
130 | en,
131 | Base,
132 | );
133 | mainGroup = B15D94231D019F8D0038C9B8;
134 | productRefGroup = B15D942D1D019F8D0038C9B8 /* Products */;
135 | projectDirPath = "";
136 | projectRoot = "";
137 | targets = (
138 | B15D942B1D019F8D0038C9B8 /* TFAnimation */,
139 | );
140 | };
141 | /* End PBXProject section */
142 |
143 | /* Begin PBXResourcesBuildPhase section */
144 | B15D942A1D019F8D0038C9B8 /* Resources */ = {
145 | isa = PBXResourcesBuildPhase;
146 | buildActionMask = 2147483647;
147 | files = (
148 | B15D945D1D019FFA0038C9B8 /* Info.plist in Resources */,
149 | B15D945C1D019FFA0038C9B8 /* Main.storyboard in Resources */,
150 | B15D945A1D019FFA0038C9B8 /* Assets.xcassets in Resources */,
151 | B15D945B1D019FFA0038C9B8 /* LaunchScreen.storyboard in Resources */,
152 | );
153 | runOnlyForDeploymentPostprocessing = 0;
154 | };
155 | /* End PBXResourcesBuildPhase section */
156 |
157 | /* Begin PBXSourcesBuildPhase section */
158 | B15D94281D019F8D0038C9B8 /* Sources */ = {
159 | isa = PBXSourcesBuildPhase;
160 | buildActionMask = 2147483647;
161 | files = (
162 | B15D94621D01A0700038C9B8 /* TFEasingFunction.swift in Sources */,
163 | B15D945E1D019FFA0038C9B8 /* ViewController.swift in Sources */,
164 | B15D94611D01A0700038C9B8 /* TFBasicAnimation.swift in Sources */,
165 | B15D94591D019FFA0038C9B8 /* AppDelegate.swift in Sources */,
166 | );
167 | runOnlyForDeploymentPostprocessing = 0;
168 | };
169 | /* End PBXSourcesBuildPhase section */
170 |
171 | /* Begin PBXVariantGroup section */
172 | B15D94521D019FFA0038C9B8 /* LaunchScreen.storyboard */ = {
173 | isa = PBXVariantGroup;
174 | children = (
175 | B15D94531D019FFA0038C9B8 /* Base */,
176 | );
177 | name = LaunchScreen.storyboard;
178 | sourceTree = "";
179 | };
180 | B15D94541D019FFA0038C9B8 /* Main.storyboard */ = {
181 | isa = PBXVariantGroup;
182 | children = (
183 | B15D94551D019FFA0038C9B8 /* Base */,
184 | );
185 | name = Main.storyboard;
186 | sourceTree = "";
187 | };
188 | /* End PBXVariantGroup section */
189 |
190 | /* Begin XCBuildConfiguration section */
191 | B15D943C1D019F8D0038C9B8 /* Debug */ = {
192 | isa = XCBuildConfiguration;
193 | buildSettings = {
194 | ALWAYS_SEARCH_USER_PATHS = NO;
195 | CLANG_ANALYZER_NONNULL = YES;
196 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
197 | CLANG_CXX_LIBRARY = "libc++";
198 | CLANG_ENABLE_MODULES = YES;
199 | CLANG_ENABLE_OBJC_ARC = YES;
200 | CLANG_WARN_BOOL_CONVERSION = YES;
201 | CLANG_WARN_CONSTANT_CONVERSION = YES;
202 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
203 | CLANG_WARN_EMPTY_BODY = YES;
204 | CLANG_WARN_ENUM_CONVERSION = YES;
205 | CLANG_WARN_INT_CONVERSION = YES;
206 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
207 | CLANG_WARN_UNREACHABLE_CODE = YES;
208 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
209 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
210 | COPY_PHASE_STRIP = NO;
211 | DEBUG_INFORMATION_FORMAT = dwarf;
212 | ENABLE_STRICT_OBJC_MSGSEND = YES;
213 | ENABLE_TESTABILITY = YES;
214 | GCC_C_LANGUAGE_STANDARD = gnu99;
215 | GCC_DYNAMIC_NO_PIC = NO;
216 | GCC_NO_COMMON_BLOCKS = YES;
217 | GCC_OPTIMIZATION_LEVEL = 0;
218 | GCC_PREPROCESSOR_DEFINITIONS = (
219 | "DEBUG=1",
220 | "$(inherited)",
221 | );
222 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
223 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
224 | GCC_WARN_UNDECLARED_SELECTOR = YES;
225 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
226 | GCC_WARN_UNUSED_FUNCTION = YES;
227 | GCC_WARN_UNUSED_VARIABLE = YES;
228 | IPHONEOS_DEPLOYMENT_TARGET = 9.3;
229 | MTL_ENABLE_DEBUG_INFO = YES;
230 | ONLY_ACTIVE_ARCH = YES;
231 | SDKROOT = iphoneos;
232 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
233 | TARGETED_DEVICE_FAMILY = "1,2";
234 | };
235 | name = Debug;
236 | };
237 | B15D943D1D019F8D0038C9B8 /* Release */ = {
238 | isa = XCBuildConfiguration;
239 | buildSettings = {
240 | ALWAYS_SEARCH_USER_PATHS = NO;
241 | CLANG_ANALYZER_NONNULL = YES;
242 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
243 | CLANG_CXX_LIBRARY = "libc++";
244 | CLANG_ENABLE_MODULES = YES;
245 | CLANG_ENABLE_OBJC_ARC = YES;
246 | CLANG_WARN_BOOL_CONVERSION = YES;
247 | CLANG_WARN_CONSTANT_CONVERSION = YES;
248 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
249 | CLANG_WARN_EMPTY_BODY = YES;
250 | CLANG_WARN_ENUM_CONVERSION = YES;
251 | CLANG_WARN_INT_CONVERSION = YES;
252 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
253 | CLANG_WARN_UNREACHABLE_CODE = YES;
254 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
255 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
256 | COPY_PHASE_STRIP = NO;
257 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
258 | ENABLE_NS_ASSERTIONS = NO;
259 | ENABLE_STRICT_OBJC_MSGSEND = YES;
260 | GCC_C_LANGUAGE_STANDARD = gnu99;
261 | GCC_NO_COMMON_BLOCKS = YES;
262 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
263 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
264 | GCC_WARN_UNDECLARED_SELECTOR = YES;
265 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
266 | GCC_WARN_UNUSED_FUNCTION = YES;
267 | GCC_WARN_UNUSED_VARIABLE = YES;
268 | IPHONEOS_DEPLOYMENT_TARGET = 9.3;
269 | MTL_ENABLE_DEBUG_INFO = NO;
270 | SDKROOT = iphoneos;
271 | TARGETED_DEVICE_FAMILY = "1,2";
272 | VALIDATE_PRODUCT = YES;
273 | };
274 | name = Release;
275 | };
276 | B15D943F1D019F8D0038C9B8 /* Debug */ = {
277 | isa = XCBuildConfiguration;
278 | buildSettings = {
279 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
280 | CLANG_ENABLE_MODULES = YES;
281 | INFOPLIST_FILE = "$(SRCROOT)/TFAnimation/Demo/Info.plist";
282 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
283 | PRODUCT_BUNDLE_IDENTIFIER = com.cmbchina.UIViewAnimation;
284 | PRODUCT_NAME = "$(TARGET_NAME)";
285 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
286 | };
287 | name = Debug;
288 | };
289 | B15D94401D019F8D0038C9B8 /* Release */ = {
290 | isa = XCBuildConfiguration;
291 | buildSettings = {
292 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
293 | CLANG_ENABLE_MODULES = YES;
294 | INFOPLIST_FILE = "$(SRCROOT)/TFAnimation/Demo/Info.plist";
295 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
296 | PRODUCT_BUNDLE_IDENTIFIER = com.cmbchina.UIViewAnimation;
297 | PRODUCT_NAME = "$(TARGET_NAME)";
298 | };
299 | name = Release;
300 | };
301 | /* End XCBuildConfiguration section */
302 |
303 | /* Begin XCConfigurationList section */
304 | B15D94271D019F8D0038C9B8 /* Build configuration list for PBXProject "TFAnimation" */ = {
305 | isa = XCConfigurationList;
306 | buildConfigurations = (
307 | B15D943C1D019F8D0038C9B8 /* Debug */,
308 | B15D943D1D019F8D0038C9B8 /* Release */,
309 | );
310 | defaultConfigurationIsVisible = 0;
311 | defaultConfigurationName = Release;
312 | };
313 | B15D943E1D019F8D0038C9B8 /* Build configuration list for PBXNativeTarget "TFAnimation" */ = {
314 | isa = XCConfigurationList;
315 | buildConfigurations = (
316 | B15D943F1D019F8D0038C9B8 /* Debug */,
317 | B15D94401D019F8D0038C9B8 /* Release */,
318 | );
319 | defaultConfigurationIsVisible = 0;
320 | defaultConfigurationName = Release;
321 | };
322 | /* End XCConfigurationList section */
323 | };
324 | rootObject = B15D94241D019F8D0038C9B8 /* Project object */;
325 | }
326 |
--------------------------------------------------------------------------------