Cannot select individual view in selectable mode

Cannot select individual view in selectable mode in Xcode preview, it only show the whole blue device border.

Hi,

Sorry to hear you are having problems getting selection in your previews working. Are you seeing this with Xcode 16.0 seed 1 or 2? If so, then this is a known issue.

Workaround to try for now to get selection working again would be to try reverting to the old previews execution using Editor > Canvas > Use Legacy Previews Execution.

I'm using Xcode 16.0 seed 2, and tried your workaround. Does not resolve issue.

Discovered just now that having the view nested in a NavigationStack can cause the issue.

In my case, commenting out the NavStack lets me inspect individual views. Hope this helps someone.

var body: some View {
	//  NavigationStack {   <--  Here
		VStack {
			Text("Hello")
			Text("World")
		}
	// }    <-- Here
}

This is still broken in Xcode 26.0 beta 2 (17A5241o). The workaround works in 16.4, but in 26 it's stochastic. It works in non legacy mode my extremely simple buncha Text views in a body view, but in legacy mode on my custom layout but just one layer view. In the view with custom layout and a ZStack, nothing either way.

Cannot select individual view in selectable mode
 
 
Q