LazyVStack produces `AttributeGraph: cycle detected through attribute` when used in sheet

struct SheetView: View {
    @Binding var showSheet: Bool

    var body: some View {
        LazyVStack {
            Button("Dismiss") {
                showSheet.toggle()
            }
        }
    }
}

struct ContentView: View {
    @State private var showSheet = false

    var body: some View {
        Button("Show") {
            showSheet.toggle()
        }
        .sheet(isPresented: $showSheet) {
            SheetView(showSheet: $showSheet)
        }
    }
}

Xcode displays === AttributeGraph: cycle detected through attribute 119104 === message in console when SheetView is presented on screen.

Environment: macOS 14.4.1
Xcode: Version 15.2

I just pasted your code into a new project, and it doesn't show that warning.

Are you seeing it as part of a larger project? If so, maybe something else is causing it?

LazyVStack produces `AttributeGraph: cycle detected through attribute` when used in sheet
 
 
Q