Created
June 21, 2020 15:46
-
-
Save sgl0v/28af5325aae83e9aa2beac66cf69d7f5 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 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