Cannot select individual view in selectable mode in Xcode preview, it only show the whole blue device border.
Cannot select individual view in selectable mode
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
}