DismissAction or PresentationMode from Environment break Accent Color on presented sheets?

Anyone else notice that the DismissAction or PresentationMode will break accent color on sheets?

struct ContentView: View {
    // Un-comment either of the below lines, and the tint color of SheetView becomes gray, rather than red.
//    @Environment(\.dismiss) var dismiss
//    @Environment(\.presentationMode) var presentationMode

    @State var sheetPresented = false
    var body: some View {
        Button("Show Sheet") {
            sheetPresented.toggle()
        }
        .sheet(isPresented: $sheetPresented) {
            SheetView()
                .accentColor(.red)
        }
    }
}

struct SheetView: View {
    @Environment(\.dismiss) var dismiss
    
    var body: some View {
        Button("Dismiss") {
            dismiss()
        }
        .foregroundColor(.accentColor)
    }
}

Filed as FB9426937

same issue Xcode 13.0 beta 4

Yes. Me too. Filed a report FB9467327. XCode 13 beta 4

Looks like it's fixed in Beta 5

DismissAction or PresentationMode from Environment break Accent Color on presented sheets?
 
 
Q