UITableView with UIViewRepresentable in SwiftUI
问题 I am trying to use UITableView in a SwiftUI app struct UIList: UIViewRepresentable { var rows: [String] func makeUIView(context: Context) -> UITableView { let collectionView = UITableView(frame: .zero, style: .plain) collectionView.translatesAutoresizingMaskIntoConstraints = false collectionView.dataSource = context.coordinator collectionView.delegate = context.coordinator collectionView.register(UITableViewCell.self, forCellReuseIdentifier: "Cell") return collectionView } func updateUIView(_