Animating Auto Layout constraints with NSView.layoutSubtreeIfNeeded() not working on macOS High Sierra
问题 I have a basic Mac app with a view animation done through Auto Layout: I add a new view to the right of the current view I update the constraints so that the new view ends up filling the window → The animation will make it appear as if the view slides in from the right. The recommended way for animating Auto Layout changes is: Update the constraints Use NSAnimationContext.runAnimationGroup() Set allowsImplicitAnimation to true inside the animation block Call view.layoutSubtreeIfNeeded()