출처

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/8c2e9cdb-5733-4a3d-9604-494ba1f2f3a4/Untitled.png

For drag and drop in a single app, that app plays both roles simultaneously.

= 하나의 app에서 drag and drop으로 이뤄질 경우 source/destination 두가지의 역할 모두를 해야함

Drag and Drop & TableView

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/48a32b91-7f8f-4405-927b-d56e54f0255e/__2021-07-06__8.15.33.mov

Enable Drag and Drop Interactions

override func viewDidLoad() {
    super.viewDidLoad()
    
    tableView.dragInteractionEnabled = true
    tableView.dragDelegate = self
    tableView.dropDelegate = self

    navigationItem.rightBarButtonItem = editButtonItem
}

UITableView 문서를 확인해보면