From 7e0d2d79c9aee112c32f8754772b8858aa3f2af7 Mon Sep 17 00:00:00 2001 From: ITlearning Date: Thu, 13 Jan 2022 16:48:51 +0900 Subject: [PATCH] =?UTF-8?q?#61=20-=20=ED=8C=80=EC=9B=90=20=EB=AA=A8?= =?UTF-8?q?=EC=A7=91=20=EB=B7=B0=EC=97=90=EC=84=9C=20=EB=AA=A8=EC=A7=91?= =?UTF-8?q?=EC=9D=B8=EC=9B=90=20=EB=B7=B0=20=EB=9F=B0=ED=83=80=EC=9E=84=20?= =?UTF-8?q?=EC=97=90=EB=9F=AC=20=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ProjectMembersBottomViewController.swift | 10 ++-------- .../Home/HomeWriting/HomeWritingViewController.swift | 2 +- .../Source/MyBudi/Edit/MyBudiEditViewController.swift | 4 +--- 3 files changed, 4 insertions(+), 12 deletions(-) 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