diff --git a/Budi/Budi/Source/Home/HomeWriting/BottomSheets/ProjectMembersBottomView/ProjectMembersBottomViewController.swift b/Budi/Budi/Source/Home/HomeWriting/BottomSheets/ProjectMembersBottomView/ProjectMembersBottomViewController.swift index 0f5fe4ce..9601601a 100644 --- a/Budi/Budi/Source/Home/HomeWriting/BottomSheets/ProjectMembersBottomView/ProjectMembersBottomViewController.swift +++ b/Budi/Budi/Source/Home/HomeWriting/BottomSheets/ProjectMembersBottomView/ProjectMembersBottomViewController.swift @@ -12,12 +12,6 @@ protocol ProjectMembersBottomViewControllerDelegate: AnyObject { func getRecruitingPositions(_ recruitingPositions: [RecruitingPosition], _ selectPosition: Int) } -extension ProjectMembersBottomViewControllerDelegate { - func getRecruitingPositions(_ recruitingPositions: [RecruitingPosition], _ selectPosition: Int = 0) { - getRecruitingPositions(recruitingPositions, selectPosition) - } -} - final class ProjectMembersBottomViewController: UIViewController { @IBOutlet private weak var backgroundView: UIView! @@ -74,7 +68,7 @@ private extension ProjectMembersBottomViewController { .receive(on: DispatchQueue.main) .sink { [weak self] _ in guard let self = self else { return } - self.delegate?.getRecruitingPositions(self.recruitingPositions) + self.delegate?.getRecruitingPositions(self.recruitingPositions, 0) self.hideBottomView() }.store(in: &cancellables) @@ -86,7 +80,7 @@ private extension ProjectMembersBottomViewController { case .myBudi: self.delegate?.getRecruitingPositions(self.recruitingPositions, self.selectPosition) case .writing: - self.delegate?.getRecruitingPositions(self.recruitingPositions) + self.delegate?.getRecruitingPositions(self.recruitingPositions, 0) } self.hideBottomView() }.store(in: &cancellables) diff --git a/Budi/Budi/Source/Home/HomeWriting/HomeWritingViewController.swift b/Budi/Budi/Source/Home/HomeWriting/HomeWritingViewController.swift index 63e9bfd2..94dea10a 100644 --- a/Budi/Budi/Source/Home/HomeWriting/HomeWritingViewController.swift +++ b/Budi/Budi/Source/Home/HomeWriting/HomeWritingViewController.swift @@ -202,7 +202,7 @@ extension HomeWritingViewController: HomeLocationSearchViewControllerDelegate { } extension HomeWritingViewController: ProjectMembersBottomViewControllerDelegate { - func getRecruitingPositions(_ recruitingPositions: [RecruitingPosition]) { + func getRecruitingPositions(_ recruitingPositions: [RecruitingPosition], _ selectPosition: Int) { viewModel.state.recruitingPositions.value = recruitingPositions collectionView.reloadData() isValid() diff --git a/Budi/Budi/Source/MyBudi/Edit/MyBudiEditViewController.swift b/Budi/Budi/Source/MyBudi/Edit/MyBudiEditViewController.swift index 138bc983..6a07302d 100644 --- a/Budi/Budi/Source/MyBudi/Edit/MyBudiEditViewController.swift +++ b/Budi/Budi/Source/MyBudi/Edit/MyBudiEditViewController.swift @@ -70,8 +70,6 @@ final class MyBudiEditViewController: UIViewController { } .store(in: &cancellables) - - } func modalViewBackgoundOn() { @@ -291,7 +289,7 @@ extension MyBudiEditViewController: UITableViewDelegate, UITableViewDataSource { } else { cell.configureLabel(text: "한줄소개") cell.configureText(text: self.viewModel.state.loginUserData.value?.description ?? "") - + cell.normalTextField.textPublisher .receive(on: DispatchQueue.main) .sink { [weak self] text in