我有一个带有一个动画的ViewController,该动画设置为使用选项无限循环:[.autoreverse,.repeat]-然而,当我呈现一个新的ViewController(设置VC)-然后关闭它以返回带有动画的View,动画不是动画。View(ballContainer)只是保持静态,而它应该仍然是动画的。animateBallViewIn方法funcanimateBallViewIn(){self.view.layoutIfNeeded()UIView.animate(withDuration:0.5,animations:{self.ballContainer.alpha=