Skip to content

Instantly share code, notes, and snippets.

@h4yder
Created August 12, 2020 15:11
Show Gist options
  • Save h4yder/7924c1e1ee60a272d8fe3fc640bd1b0a to your computer and use it in GitHub Desktop.
Save h4yder/7924c1e1ee60a272d8fe3fc640bd1b0a to your computer and use it in GitHub Desktop.
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