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.
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.