Unable to display contextMenu

This is a visionOS App. I added contextMenu under a combination view, but when I pressed the view for a long time, there was no response. I tried to use this contextMenu in other views, which can be used normally, so I think there is something wrong with this combination view, but I don't know what the problem is. I hope you can remind me. Thank you!

Views with problems:

struct NAMEView: View {
    @StateObject private var placeStore = PlaceStore()
    
    var body: some View {
        ZStack {
            Group {
                HStack(spacing: 2) {
                    Image(systemName: "mappin.circle.fill")
                        .font(.system(size: 50))
                        .symbolRenderingMode(.multicolor)
                        .accessibilityLabel("your location")
                        .accessibilityAddTraits([.isHeader])
                        .padding(.leading, 5.5)
                    
                    VStack {
                        Text("\(placeStore.locationName)")
                            .font(.title3)
                            .accessibilityLabel(placeStore.locationName)
                        Text("You are here in App")
                            .font(.system(size: 13))
                            .foregroundColor(.secondary)
                            .accessibilityLabel("You are here in App")
                    }
                    .hoverEffect { effect, isActive, _ in
                        effect.opacity(isActive ? 1 : 0)
                    }
                    .padding()
                }
            }
            .onAppear {
                placeStore.updateLocationName()
            }
            .glassBackgroundEffect()
            .hoverEffect { effect, isActive, proxy in
                effect.clipShape(.capsule.size(
                    width: isActive ? proxy.size.width : proxy.size.height,
                    height: proxy.size.height,
                    anchor: .leading
                ))
                .scaleEffect(isActive ? 1.05 : 1.0)
            }
        }
    }
}
Answered by Vision Pro Engineer in 795456022

This appears to me to be a bug. Would you be able to file feedback with an example project?

Accepted Answer

This appears to me to be a bug. Would you be able to file feedback with an example project?

Unable to display contextMenu
 
 
Q