Skip to content

Instantly share code, notes, and snippets.

@sgl0v
Created June 21, 2020 15:46
Show Gist options
  • Save sgl0v/28af5325aae83e9aa2beac66cf69d7f5 to your computer and use it in GitHub Desktop.
Save sgl0v/28af5325aae83e9aa2beac66cf69d7f5 to your computer and use it in GitHub Desktop.
private func openPlayerAnimator(with duration: TimeInterval) -> UIViewPropertyAnimator {
let animator = UIViewPropertyAnimator(duration: duration, dampingRatio: 1.0)
addAnimation(to: animator, animations: {
self.updatePlayerContainer(with: self.state)
self.updateTabBar(with: self.state)
})
return animator
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment