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!")
}
I think there is some small bug with the spring animation. The completion block it's never been called.