Skip to content

Commit

Permalink
Merge pull request #526 from DeveloperAcademy-POSTECH/feature/525-cha…
Browse files Browse the repository at this point in the history
…racter-index-fix

[CHORE] 방 참여시 캐릭터 인덱스가 설정 안되는 문제를 수정했습니다.
  • Loading branch information
MMMIIIN authored Sep 9, 2023
2 parents b7b70fe + fee3af1 commit da00223
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ final class ChooseCharacterView: UIView, BaseViewType {
self?.delegate?.closeButtonDidTap()
}
let didTapJoinButton = UIAction { [weak self] _ in
self?.delegate?.joinButtonDidTap(characterIndex: self?.manittoCollectionView.characterIndex ?? 0)
self?.delegate?.joinButtonDidTap(characterIndex: self?.manittoCollectionView.characterIndexTapPublisher.value ?? 0)
}

self.backButton.addAction(didTapBackButton, for: .touchUpInside)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,8 @@ final class CharacterCollectionView: UIView {
}()

// MARK: - property
// FIXME: characterIndex 삭제예정
private(set) var characterIndex: Int = 0
let characterIndexTapPublisher = PassthroughSubject<Int, Never>()

let characterIndexTapPublisher = CurrentValueSubject<Int, Never>(0)

// MARK: - init

Expand Down

0 comments on commit da00223

Please sign in to comment.