Last active
July 27, 2018 08:10
-
-
Save Dywane/10f3622526beaacdd26b2e73a3ec464f to your computer and use it in GitHub Desktop.
Update Core Code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var percent = (CGFloat(currentTime - beginTime) - CGFloat(delayArray[index])) / CGFloat(durationArray[index]) | |
percent = fmax(0.0, percent) | |
percent = fmin(1.0, percent) | |
attributedString.addAttribute(.baselineOffset, value: (percent - 1) * label!.font.lineHeight, range: range) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment