We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I think there is some small bug with the spring animation. The completion block it's never been called.
var newFrame = view.frame newFrame.size.height = 50 UIView.animate( withDuration: 1.25, delay: 0, usingSpringWithDamping: 0.65, initialSpringVelocity: 0.75, options: [], animations: { self.testLayer.frame = newFrame }) { _ in print("Tralala!") }
The text was updated successfully, but these errors were encountered:
thanks for reporting, could you please try with another property like alpha to check if it's a property name related problem?
alpha
Sorry, something went wrong.
yep with this code
var newFrame = view.frame newFrame.size.height = 50 UIView.animate( withDuration: 1.25, delay: 0, usingSpringWithDamping: 0.65, initialSpringVelocity: 0.75, options: [], animations: { self.testLayer.frame = newFrame self.view.alpha = 0.25 }) { _ in print("Tralala!") }
works and completion block is called.
interesting - it must have to do with frame being a composed property (position and bounds), I will look into debugging this and thanks for reporting
frame
icanzilb
No branches or pull requests
I think there is some small bug with the spring animation. The completion block it's never been called.
The text was updated successfully, but these errors were encountered: