NSViewControllerRepresentable not responding to events when embedded into SwiftUI List
问题 I have the following code snippets: The list element: struct PaletteListRowUIView: View { @State var colorPalette: ColorPalette var isSelected: Bool var onSelect: () -> Void var body: some View { return VStack(alignment: .leading) { HStack { Group { if(isSelected) { Ellipse().fill(Color.white) } else { Ellipse().stroke(Color.white) } }.contentShape(Ellipse()) .aspectRatio(1, contentMode: .fit).frame(width: 10, height: 10) .gesture(TapGesture().onEnded(onSelect)) RenameableText(text: