how to implement move on a grouped list in swiftui
问题 how do i implement the onMove function in a grouped list? unfortunately i cannot see where i get the "to company" information from... here is the code: import SwiftUI struct Person: Identifiable, Hashable { var id = UUID() var name: String } struct Company : Identifiable, Hashable { var id = UUID() var name: String var employees : [Person] } class CompanyList: ObservableObject { @Published var companies = [ Company(name: "Apple", employees: [Person(name:"Bob"), Person(name:"Brenda")]),