For drag and drop in a single app, that app plays both roles simultaneously.
= 하나의 app에서 drag and drop으로 이뤄질 경우 source/destination 두가지의 역할 모두를 해야함
https://s3-us-west-2.amazonaws.com/secure.notion-static.com/48a32b91-7f8f-4405-927b-d56e54f0255e/__2021-07-06__8.15.33.mov
override func viewDidLoad() {
super.viewDidLoad()
tableView.dragInteractionEnabled = true
tableView.dragDelegate = self
tableView.dropDelegate = self
navigationItem.rightBarButtonItem = editButtonItem
}
source/destination이 동일한 tableView이므로 drag/drop delegate를 모두 self로 지정
tabelView에 drag/drop delegate 객체가 따로 존재
UITableView 문서를 확인해보면