You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: C4/UI/Animation.swift
+16-16
Original file line number
Diff line number
Diff line change
@@ -31,13 +31,13 @@ public class Animation {
31
31
/// ````
32
32
publicenumCurve{
33
33
/// A linear animation curve causes an animation to occur evenly over its duration.
34
-
caselinear
34
+
caseLinear
35
35
/// An ease-out curve causes the animation to begin quickly, and then slow down as it completes.
36
-
caseeaseOut
36
+
caseEaseOut
37
37
/// An ease-in curve causes the animation to begin slowly, and then speed up as it progresses.
38
-
caseeaseIn
38
+
caseEaseIn
39
39
/// An ease-in ease-out curve causes the animation to begin slowly, accelerate through the middle of its duration, and then slow again before completing. This is the default curve for most animations.
40
-
caseeaseInOut
40
+
caseEaseInOut
41
41
}
42
42
43
43
/// Determines if the animation plays in the reverse upon completion.
@@ -64,7 +64,7 @@ public class Animation {
64
64
publicvarduration:TimeInterval=1
65
65
66
66
/// The animation curve that the receiver will apply to the changes it is supposed to animate.
67
-
publicvarcurve:Curve=.easeInOut
67
+
publicvarcurve:Curve=.EaseInOut
68
68
69
69
privatevarcompletionObservers:[AnyObject]=[]
70
70
privatevarcancelObservers:[AnyObject]=[]
@@ -81,7 +81,7 @@ public class Animation {
81
81
}
82
82
83
83
deinit{
84
-
letnc=NotificationCenter.default()
84
+
letnc=NotificationCenter.default
85
85
forobserverin completionObservers {
86
86
nc.removeObserver(observer)
87
87
}
@@ -100,9 +100,9 @@ public class Animation {
100
100
/// - parameter action: a block of code to be executed at the end of an animation.
/// This method is triggered when an animation completes. This can be used in place of `addCompletionObserver` for objects outside the scope of the context in which the animation is created.
/// This method is triggered when an animation is canceled. This can be used in place of `addCancelObserver` for objects outside the scope of the context in which the animation is created.
0 commit comments