Are SwiftUI animations in UIKit & AppKit intentionally deprecated?

Is there some reason UIKit's and AppKit's animate(with:changes:completion:) methods are marked deprecated in iOS 18 when they were also first made available in iOS18? If they are indeed already deprecated, is there a replacement method we are supposed to use? This method allows the developer to use SwiftUI animations to animate UIKit and AppKit views.

Answered by Etresoft in 827022022

There were both renamed to animate(_:changes:completion)

There are always two sources of documentation. Option click the statement to see the fancy docs, context menu > Jump to definition to see the header docs. You'll find this information in the header docs for this.

Accepted Answer

There were both renamed to animate(_:changes:completion)

There are always two sources of documentation. Option click the statement to see the fancy docs, context menu > Jump to definition to see the header docs. You'll find this information in the header docs for this.

Are SwiftUI animations in UIKit & AppKit intentionally deprecated?
 
 
Q