SwiftUI navigation transition customization

In the SwiftUI group lab, an engineer mentioned that there were new ways to customize SwiftUI screen transitions. They mentioned there is a crossfade, which I see in the docs, but they also mentioned other customizations. Did they misspeak, or are there custom screen transitions? I'd love a modern, SwiftUI replacement for custom presentation controllers from UIKit!

Answered by Frameworks Engineer in 892229022

In iOS 27, there are 2 new APIs for navigation transitions: the crossfade API and AnyNavigationTransition. AnyNavigationTransition makes it possible to dynamically configure transitions (like switching between a zoom and an automatic transition), which previously wasn't possible.

There isn't currently an exact replacement for custom presentation controllers in UIKit, but we'd welcome a feedback with more details about your usecase!

Edit: See the recommended answer.

Accepted Answer

In iOS 27, there are 2 new APIs for navigation transitions: the crossfade API and AnyNavigationTransition. AnyNavigationTransition makes it possible to dynamically configure transitions (like switching between a zoom and an automatic transition), which previously wasn't possible.

There isn't currently an exact replacement for custom presentation controllers in UIKit, but we'd welcome a feedback with more details about your usecase!

SwiftUI navigation transition customization
 
 
Q