Animation Book Chapter 3, hide animation is not workign

In the book, it says to put this code to animate hiding status view but status disappear suddenly

UIView.transition(with: status, duration: 0.2, options: .transitionFlipFromTop, animations: {
self.status.isHidden = true
self.status.center = self.statusPosition
}, completion: nil)

@morteza2128 Does this happen in the sample project for the chapter too?

This topic was automatically closed after 166 days. New replies are no longer allowed.