Skip to content

Commit

Permalink
[Hotfix] 불필요한 스트림 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
cchanmi committed Aug 6, 2024
1 parent 50d05d2 commit 9cd695d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,6 @@ extension ResignSummaryViewController: UITextViewDelegate {
let deSelectedIndexPath = (0...3).map { IndexPath(item: $0, section: 0) }
deSelectedIndexPath.forEach { indexPath in trainingGoalCollectionView.collectionView(trainingGoalCollectionView,
didDeselectItemAt: indexPath) }
self.cellTapped.send(4)
}

func textViewDidEndEditing(_ textView: UITextView) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ final class ResignSummaryViewModel: ViewModel {

struct Output {
let viewWillAppearResult: AnyPublisher<[Goal], Never>
let buttonResult: AnyPublisher<SmeemButtonType, Never>
let keyboardResult: AnyPublisher<CGFloat, Never>
let enabledButtonResult: PassthroughSubject<SmeemButtonType, Never>
let notEnabledButtonResult: PassthroughSubject<SmeemButtonType, Never>
Expand Down Expand Up @@ -84,12 +83,6 @@ final class ResignSummaryViewModel: ViewModel {
}
.store(in: &cancelBag)

let buttonResult = cellIndexSubject
.map { index -> SmeemButtonType in
return index == 4 ? .notEnabled : .enabled
}
.eraseToAnyPublisher()

cellIndexSubject
.sink { index -> Void in
if index == 4 && self.summaryText == "" { self.notEnabledButtonResult.send(.notEnabled) }
Expand Down Expand Up @@ -155,7 +148,6 @@ final class ResignSummaryViewModel: ViewModel {
promise(.success(()))
case .failure(let error):
self.errorSubject.send(error)
promise(.success(()))
}
}
}
Expand All @@ -166,7 +158,6 @@ final class ResignSummaryViewModel: ViewModel {
let errorResult = errorSubject.eraseToAnyPublisher()

return Output(viewWillAppearResult: viewWillAppearResult,
buttonResult: buttonResult,
keyboardResult: keyboardResult,
enabledButtonResult: enabledButtonResult,
notEnabledButtonResult: notEnabledButtonResult,
Expand Down

0 comments on commit 9cd695d

Please sign in to comment.