Skip to content

Commit

Permalink
Use smaller "big number" (1 year) to avoid animation issues [swift].
Browse files Browse the repository at this point in the history
  • Loading branch information
cbpowell committed Jun 11, 2017
1 parent 774dfaf commit b1a55ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Swift/MarqueeLabel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@ open class MarqueeLabel: UILabel, CAAnimationDelegate {
FadeStep(timeStep: -0.2, edgeFades: [.leading, .trailing]), // Maintain fade state until 0.2 sec before reaching away position
ScrollStep(timeStep: animationDuration, timingFunction: animationCurve, // Away position, using animationCurve transition, with only leading edge faded in
position: .away, edgeFades: .leading),
ScrollStep(timeStep: CGFloat.greatestFiniteMagnitude, // "Delay" at away, for huge time to effectie stay at away permanently
ScrollStep(timeStep: 60*60*24*365.0, // "Delay" at away, for huge time to effectie stay at away permanently
position: .away, edgeFades: .leading),
]
}
Expand Down

0 comments on commit b1a55ee

Please sign in to comment.