import Combine
class TagSettingViewController: UIViewController {
var passDeleteEventButton = PassthroughSubject<UIButton, Never>()
}
@objc func modalDeleteButtonClicked(sender:UIButton){
passDeleteEventButton.send(sender)
self.navigationController?.popViewController(animated: true)
}
import Combine
var bag = Set<AnyCancellable>()
nextViewController.passDeleteEventButton.sink { [weak self] button in
// TableView cell 삭제 기능 구현
}
.store(in: &bag)