This is a common issue in SwiftUI when you use a List and change a state variable (like isShowingDetail) outside the list's data model. When you tap a row and toggle isShowingDetail, SwiftUI recomputes the view hierarchy, and sometimes this causes the List to "jump" or lose its scroll position, especially if the list is blurred or otherwise visually modified.
Why does this happen?
State change: Toggling isShowingDetail causes the entire view to re-render, including the List.
Blur effect: Applying .blur(radius: isShowingDetail ? 2 : 0) to the whole NavigationView can cause SwiftUI to re-layout the list, which may reset its scroll position.
No explicit selection: If you don't use SwiftUI's built-in selection mechanism, the list doesn't know which row is "active," so it may reset.
How to Fix
1. Move the Blur Effect
Instead of blurring the entire NavigationView, blur only the content behind your detail view (if you have one), or use a .sheet or .fullScreenCover for the detail view. This way, the list itself isn't blurred and doesn't need to re-layout.