SwiftUI inspector inside NavigationStack causes scrolling and transition issues

We’ve encountered an issue while developing with SwiftUI: when using the inspector on iPadOS, if the inspector is placed inside a NavigationStack, and both the view attached to the inspector and the content inside the inspector itself are scrollable, scrolling them to the top may cause abnormal jitter.

We suspect this issue might be related to NavigationTitle. However, if we place the inspector outside the NavigationStack, tapping any NavigationLink while the inspector is expanded will cause problems with the View.matchedTransitionSource(id:in:) animation.

A reproducible project can be found here: https://github.com/ThreeManager785/Inspetor-Issue

We’ve tried many approaches but haven’t been able to resolve it. Is there any way to fix this issue?

Answered by DTS Engineer in 858349022

@WindowsMEMZ I was able to reproduce the issue as well, looks like an odd behavior. First, could you open a bug report and attach the sample project? Please post the Feedback ID number here once you file the feedback report so I can follow up with the issue.

@WindowsMEMZ I was able to reproduce the issue as well, looks like an odd behavior. First, could you open a bug report and attach the sample project? Please post the Feedback ID number here once you file the feedback report so I can follow up with the issue.

SwiftUI inspector inside NavigationStack causes scrolling and transition issues
 
 
Q