renaming
This commit is contained in:
parent
b05b6c20c0
commit
c0f3e8a450
@ -63,8 +63,8 @@ open class LoadingSpinner: View {
|
||||
struct Pose {
|
||||
/// Delayed time (in seconds) to execute after the previous Pose.
|
||||
let delay: CFTimeInterval
|
||||
/// The time into the animation to begin.
|
||||
let start: CGFloat
|
||||
/// The time into the animation to begin drawing.
|
||||
let startTime: CGFloat
|
||||
/// The length of the drawn line.
|
||||
let length: CGFloat
|
||||
}
|
||||
@ -73,14 +73,14 @@ open class LoadingSpinner: View {
|
||||
class var poses: [Pose] {
|
||||
get {
|
||||
return [
|
||||
Pose(delay: 0.0, start: 0.000, length: 0.7),
|
||||
Pose(delay: 0.7, start: 0.500, length: 0.5),
|
||||
Pose(delay: 0.6, start: 1.000, length: 0.3),
|
||||
Pose(delay: 0.5, start: 1.500, length: 0.2),
|
||||
Pose(delay: 0.5, start: 1.875, length: 0.2),
|
||||
Pose(delay: 0.3, start: 2.250, length: 0.3),
|
||||
Pose(delay: 0.2, start: 2.600, length: 0.5),
|
||||
Pose(delay: 0.2, start: 3.000, length: 0.7)
|
||||
Pose(delay: 0.0, startTime: 0.000, length: 0.7),
|
||||
Pose(delay: 0.7, startTime: 0.500, length: 0.5),
|
||||
Pose(delay: 0.6, startTime: 1.000, length: 0.3),
|
||||
Pose(delay: 0.5, startTime: 1.500, length: 0.2),
|
||||
Pose(delay: 0.5, startTime: 1.875, length: 0.2),
|
||||
Pose(delay: 0.3, startTime: 2.250, length: 0.3),
|
||||
Pose(delay: 0.2, startTime: 2.600, length: 0.5),
|
||||
Pose(delay: 0.2, startTime: 3.000, length: 0.7)
|
||||
]
|
||||
}
|
||||
}
|
||||
@ -98,7 +98,7 @@ open class LoadingSpinner: View {
|
||||
for pose in poses {
|
||||
time += pose.delay
|
||||
times.append(time / totalSeconds)
|
||||
start = pose.start
|
||||
start = pose.startTime
|
||||
rotations.append(start * 2 * CGFloat.pi)
|
||||
strokeEnds.append(pose.length)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user