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: Sources/Swift/MarqueeLabel.swift
+6-2Lines changed: 6 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -695,8 +695,7 @@ open class MarqueeLabel: UILabel, CAAnimationDelegate {
695
695
FadeStep(timeStep:-0.2, edgeFades:[.leading,.trailing]), // Maintain fade state until 0.2 sec before reaching away position
696
696
ScrollStep(timeStep: animationDuration, timingFunction: animationCurve, // Away position, using animationCurve transition, with only leading edge faded in
697
697
position:.away, edgeFades:.leading),
698
-
ScrollStep(timeStep:60*60*24*365.0, // "Delay" at away, for huge time to effectie stay at away permanently
699
-
position:.away, edgeFades:.leading),
698
+
ScrollStep(timeStep: animationDelay, position:.away, edgeFades:.leading), // "Delay" at away, maintaining fade state
700
699
]
701
700
}
702
701
}
@@ -876,6 +875,11 @@ open class MarqueeLabel: UILabel, CAAnimationDelegate {
0 commit comments