SwiftUI Navigation Stack Zoom Transition – Title Animation Issue (iOS 18)
In the WWDC24 video "Enhance your UI animations and transitions", Apple demonstrates how the navigation stack title smoothly animates into the back button in the new view when using a zoom transition:
NavigationLink {
BraceletEditor(bracelet)
.navigationTransitionStyle(
.zoom(
sourceID: bracelet.id,
in: braceletList
)
)
} label: {
BraceletPreview(bracelet)
}
.matchedTransitionSource(
id: bracelet.id,
in: braceletList
)
However, I cannot get this animation.
Expected (from WWDC video):
Actual (iOS 18 simulator):
How can I get the original animation?