Skip to content

[Fix] #641 - 마이페이지 오류 4건 수정#684

Open
onesunny2 wants to merge 4 commits intodevelopfrom
Fix/#641
Open

[Fix] #641 - 마이페이지 오류 4건 수정#684
onesunny2 wants to merge 4 commits intodevelopfrom
Fix/#641

Conversation

@onesunny2
Copy link
Copy Markdown

@onesunny2 onesunny2 commented Mar 25, 2026

⭐️Issue


🌟Motivation

  1. 마이페이지에서 수정된 사항 없을 시 완료 버튼 동작하지 않도록 막았습니다
  2. 닉네임 옆의 x 버튼 클릭 시 닉네임이 지워지도록 수정했습니다
  3. 소개글이 3줄 초과하지 않도록 수정했습니다
  4. 장르 선택/해제 이상을 해결했습니다

🌟Key Changes


🌟Simulation


🌟To Reviewer

동작 확인을 한번씩 하긴 했는데 한번 더 확인 부탁드려용

🌟Reference


@onesunny2 onesunny2 self-assigned this Mar 25, 2026
@onesunny2 onesunny2 changed the title [Fix] #641 마이페이지 오류 수정 [Fix] #641 - 마이페이지 오류 수정 Mar 25, 2026
@onesunny2 onesunny2 changed the title [Fix] #641 - 마이페이지 오류 수정 [Fix] #641 - 마이페이지 오류 4건 수정 Mar 25, 2026
@onesunny2 onesunny2 marked this pull request as ready for review March 25, 2026 11:45
@Guryss Guryss self-requested a review March 26, 2026 09:30
Copy link
Copy Markdown
Member

@Guryss Guryss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

확인했습니다 !

닉네임, 소개글 부분은 수정이 잘 된 것 같아요. 코드 로직적인 부분에 대한 질문 남겼으니 확인 부탁드립니다.
근데 장르 선택 부분이 아직 로직이 완성되진 않은 것 같아서요!
이미 선택된 장르를 눌러 deselected하고 다시 selected하면 완료 버튼이 활성화됩니다!
해당 로직 다시 한번 확인해주심 감사하겠습니다!

추가적으로, UI 관련 수정사항은 앞으로 PR 디스크립션 시뮬레이션 이미지나 GIF, 영상 캡쳐해서 넣어주심 수월하게 코드리뷰 가능할 것 같습니다. 또한, 로직이 추가되었을 때 변경사항을 명시해주심 감사하겠습니다!

}

introTextView.do {
$0.font = .Body2
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

아래 bindData 함수에서 이미 applyWSSFont 함수를 통해 폰트 적용중이므로,
해당 코드 제외해도 좋을 것 같습니다!

Comment on lines +70 to +71

rootView.introTextView.delegate = self
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

위 델리게이트 설정과 동일하게 rx delegate로 설정하시죠!

Comment on lines +228 to +235
// 변경될 텍스트의 실제 렌더링 높이 계산해서 3줄 일 때 최대 높이(maxHeight)를 초과하게 되면 더 써지지 않도록 함
let size = CGSize(width: textView.textContainer.size.width, height: .infinity)
let boundingRect = (updatedText as NSString).boundingRect(
with: size,
options: [.usesLineFragmentOrigin, .usesFontLeading],
attributes: [.font: textView.font as Any],
context: nil
)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

아하... 텍스트 높이로 계산해서 3줄이 넘어가지 않게 계산한것이군요!
코드 의도가 궁금하긴 합니다만 ...

let textViewBeginEditing: ControlEvent<Void>

let genreCellTap: ControlEvent<IndexPath>
let genreCellTap: Observable<IndexPath>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

해당 부분 수정한 이유가 궁금하네요!


output.nicknameText
.bind(with: self, onNext: { owner, text in
owner.rootView.nicknameTextField.text = text
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nicknameText를 다시 textField에 bind해주신 이유가 궁금합니다!

현재 구조에서는 textField → ViewModel 흐름만으로도 동작하는 것 같아서요.
따로 뷰모델에서 가공된 값을 다시 UI에 전달하는 과정이 없는 걸 봐선 없어도 될 것 같습니다

@Guryss
Copy link
Copy Markdown
Member

Guryss commented Mar 26, 2026

Simulator.Screen.Recording.-.iPhone.17.Pro.-.2026-03-26.at.18.52.04.mov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Fix] 마이페이지 수정 여부 분기처리 로직 개선

2 participants