diff --git a/NotToDo/NotToDo/Presentation/MissionHistoryScene/ViewControllers/MissionHistoryViewController.swift b/NotToDo/NotToDo/Presentation/MissionHistoryScene/ViewControllers/MissionHistoryViewController.swift index 59d7d30..951a66b 100644 --- a/NotToDo/NotToDo/Presentation/MissionHistoryScene/ViewControllers/MissionHistoryViewController.swift +++ b/NotToDo/NotToDo/Presentation/MissionHistoryScene/ViewControllers/MissionHistoryViewController.swift @@ -45,7 +45,8 @@ extension MissionHistoryViewController { } private func setAddTarget() { - missionHistoryView.backButton.addTarget(self, action: #selector(popToAddMissionViewController), for: .touchUpInside) + missionHistoryView.inputTextField.keyboardToolbar.doneBarButton.setTarget(self, action: #selector(popToAddMissionViewController)) + missionHistoryView.backButton.addTarget(self, action: #selector(cancelMissionHistory), for: .touchUpInside) } private func requestMissionHistoryAPI() { @@ -66,6 +67,10 @@ extension MissionHistoryViewController { sendData() } + @objc private func cancelMissionHistory() { + self.navigationController?.popViewController(animated: true) + } + private func sendData() { delegate?.sendMissionHistoryData(data: missionHistoryView.inputTextField.text ?? "") self.navigationController?.popViewController(animated: true)