[VisionOS] .onDelete gesture not triggered for mouse

I found a regression in Apple Vision OS 2.0 beta 3 (22N5277g).

Previously, it was possible to trigger the .onDelete swipe gesture on a List/ForEach with a virtual mouse (i.e. remote desktop), however this is no longer possible (a finger pinch still works).

Sample code to reproduce the issue:

//
//  ContentView.swift
//  TextInputTest
//

import SwiftUI

struct ListElement: Identifiable {
    let id = UUID()
    let content: String
}

struct ContentView: View {
    @State var list = [
        ListElement(content: "a"),
        ListElement(content: "b"),
        ListElement(content: "c")
    ]
    var body: some View {
        List {
            ForEach(list) { element in
                Text(element.content)
            }
            .onDelete { _ in
                // No-op.
            }
        }
    }
}
[VisionOS] .onDelete gesture not triggered for mouse
 
 
Q