Skip to content

Commit

Permalink
refactor: BookCoverViewController의 Input 케이스 네이밍 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyxxn committed Dec 4, 2024
1 parent 9e37a32 commit 4b4cb49
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ final class BookCoverViewController: UIViewController {
configureAddSubviews()
configureConstraints()
configureAction()
createInput.send(.setBookColor)
createInput.send(.setBookCover)
modifyInput.send(.loadBookCover)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Photos
// TODO: - 에러 처리 필요
final class CreateBookCoverViewModel: ViewModelType {
enum Input {
case setBookColor
case setBookCover
case changedBookTitle(title: String?)
case changedBookColor(colorIndex: Int)
case changedBookImage(bookImage: Data?)
Expand Down Expand Up @@ -60,7 +60,7 @@ final class CreateBookCoverViewModel: ViewModelType {
func transform(input: AnyPublisher<Input, Never>) -> AnyPublisher<Output, Never> {
input.sink { [weak self] event in
switch event {
case .setBookColor:
case .setBookCover:
self?.setBookColor(nowIndex: 0)
Task { try await self?.fetchMemorialHouseName() }
case .changedBookTitle(let title):
Expand Down

0 comments on commit 4b4cb49

Please sign in to comment.