Created
August 12, 2020 15:11
-
-
Save h4yder/7924c1e1ee60a272d8fe3fc640bd1b0a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
private func popAnimation() { | |
let delay = DispatchTime.now() + 0.8 | |
DispatchQueue.main.asyncAfter(deadline: delay) { | |
self.numberOfAnimations -= 1 | |
if self.numberOfAnimations == 0 { | |
withAnimation(Animation.easeInOut(duration: 0.15)) { | |
self.durationLabelOpacity = 1.0 | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment