SwfitUI withAnimation's completion not called on iOS 26

I'm adapting my app on iOS 26, and I just found out withAnimation fuction's completion not called in some cases. The same code on iOS 18 was fine. The problem is very fatal, When you check the api, it saids "The completion callback will always be fired exactly one time",but this time it doens't work. I'm using the Xcode Version 26.0 (17A321) RC1,still not test on a real devcie yet.

withAnimation { offset = contentHeight isFocused = false // binding to textfield } completion: { isPresented = false }

I just find out this line causes the case, maybe bacause the keyboard animation interupt this animation.

SwfitUI withAnimation's completion not called on iOS 26
 
 
Q