VisionOS NavigationStack background cannot be removed?

I have a simple example to demonstrate...

struct MyView: View {
  var body: some View {
    Text("WOW")
  }
}


struct MyOtherView: View {
  var body: some View {
    NavigationStack {
      Text("WOW")
    }
  }
}

On VisionOS, MyOtherView has a glass background effect that cannot be disabled. glassBackgroundEffect(displayMode: .never) .background(.clear), .foregroundColor(.clear), none of them work. I then resorted to the SwiftUIIntrospect package to try set .clear on various child objects of the NavigationStack but nothing is working.

I am in control of my own glass containers. I have a couple with space between them, but with the NavigationStack it sets a background behind both of them ruining the effect.

This is what MyOtherView renders as:

I'm looking for it to be completely transparent except the text. Like the below layout.

For now I will have to roll my own navigation.

Did you find a solution? Same here!

I don't think it's currently possible except writing your own NavigationStack. I really hope it's natively supported.

Same here, already tried SwiftUI Introspect but it didn't work too, hopefully we have a solution soon.

Hey all,

This is not possible with NavigationStack, if you'd like something that looks like NavigationStack but has no background, you'll have to build it yourself using VStack and HStack.

Please file an enhancement report at https://feedbackassistant.apple.com and paste the FB number here. The more of you that file these (and send them to me!!) the more helpful that is for our engineering teams to understand how many people are requesting this and for what use case! thank you!!

VisionOS NavigationStack background cannot be removed?
 
 
Q