@DTS Engineer I am expecting the part on the left, in SwiftUI to animate exactly like the counterpart in UIKit on the right.
But they do not;
UIKit animation affects both UIView.center and UIView.bounds, and they travel using the same timing curve over the same duration, which makes it seem that the top of the UIKit view is attached to the top of the screen.
However, this illusion is not preserved for SwiftUI view because UIHostingController.view.center is not animated; it's teleported to the end position. And I also happen to know that really bounds are not animated either, the UIView actually just fully teleports to the new state, while only the SwiftUI content is animated.
And my question is - what is the way to make UIHostingController animate along its SwiftUI content?
Can you maybe confirm that there isn't a built-in support for that?
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: