From c0f3e8a4501785d878bc53eaf7c78b48bf62aaa9 Mon Sep 17 00:00:00 2001 From: Kevin G Christiano Date: Tue, 26 May 2020 10:40:34 -0400 Subject: [PATCH] renaming --- .../Atomic/Atoms/Views/LoadingSpinner.swift | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/MVMCoreUI/Atomic/Atoms/Views/LoadingSpinner.swift b/MVMCoreUI/Atomic/Atoms/Views/LoadingSpinner.swift index 675e40d0..68acdfb7 100644 --- a/MVMCoreUI/Atomic/Atoms/Views/LoadingSpinner.swift +++ b/MVMCoreUI/Atomic/Atoms/Views/LoadingSpinner.swift @@ -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) }