SwiftUI remove white color when context menu opens

I try to use context menu is SwiftUI and I faced into the issue that white background appears during How can I remove white background ?

struct PlayerLayerView: View {
    
    var body: some View {
        VideoPlayer(player: AVPlayer(url: URL(string: "https://i.imgur.com/2f4ipZX.mp4")!))
            .contextMenu {
                Button {} label: {
                    Text("item")
                }
                Button {
                    
                } label: {
                    Text("item")
                }
            } preview: {
                VideoPlayer(player: AVPlayer(url: URL(string: "https://i.imgur.com/2f4ipZX.mp4")!))
            }
      
    }
}

#Preview {
    PlayerLayerView()
}

here is an example https://i.imgur.com/eVa3QTF.mp4

Maybe .background(Color.black) is what you're after? But I can't tell because you haven't explained where you're seeing a white background? Perhaps a screenshot of your preview window with the white background would be helpful?

@darkpaw here is screenshots and I was asking about white background on highlight state.

normal state

highlighted(bug is here, no video visible here)

context menu

You need to make the background of the VideoPlayer black, i.e.:

...
      } preview: {
				VideoPlayer(player: AVPlayer(url: URL(string: "https://i.imgur.com/2f4ipZX.mp4")!))
			}
			.background(Color.black)
SwiftUI remove white color when context menu opens
 
 
Q