Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[refactor] 쪽지 작성 기능 리팩토링 #299 #301

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

skkimeo
Copy link
Contributor

@skkimeo skkimeo commented Jul 1, 2023

관련 이슈

작업 내용

  • 이상하게 쪽지 작성 창 들어갈 때 BaseTextView의 receive(on:)에서 계속 크래시가 나서 일단 주석처리했습니다...나중에 다시 들여다봐야할 것 같아요...ㅠ
  • 쪽지 작성 기능 관련 UI 요소들을 코드로 전환했습니다.
    • 쪽지 색상, 사진 버튼을 담은 툴바를 별도의 클래스로 선언했습니다.
  • 새로운 쪽지의 생성 및 저장 관련 작업들을 뷰모델로 옮겨주었습니다.

클래스/메서드/swift 파일 이름 등

  • swift 파일 명, 클래스/메서드 이름 등 작업한 상세 내용 간략히 서술해주세요.

리뷰 사항

  • PR 크기가 큰데 UI 내용이 많아서 아마도 생각보다 괜찮을 거에요...죄송합니다아악...

@skkimeo skkimeo added the refactor Refactor code label Jul 1, 2023
@skkimeo skkimeo requested a review from 2unbini July 1, 2023 02:41
@skkimeo skkimeo self-assigned this Jul 1, 2023
Copy link
Contributor

@2unbini 2unbini left a comment

Choose a reason for hiding this comment

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

확인했습니다! fontManager 관련 부분 확인 부탁드려용~!

@@ -45,7 +45,7 @@ final class BaseTextView: UITextView {

private func subscribeToFontPublisher() {
self.cancellable = fontManager.fontPublisher
.receive(on: DispatchQueue.main)
// .receive(on: DispatchQueue.main)
Copy link
Contributor

Choose a reason for hiding this comment

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

이거 updateFont(to:isBold:) 함수에서 UIFont(name: .system)이 없는건 아닐까요?
아니면 fontManager가 싱글턴이니까 상위 뷰에서 먼저 설정되어야 하는 부분을 건너뛰어서 여기서 크래시가 나는 것은 아닌가 합니다!
만약 저 객체 자체가 뭔가 이니셜라이징이 제대로 안 되어있으면 전체 뷰에서 문제가 날 수도 있겠다는 생각이 듭니당

Copy link
Contributor Author

Choose a reason for hiding this comment

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

오 한번 확인해보고 말씀드릴게요!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Refactor code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[refactor] 쪽지 작성 기능 리팩토링
2 participants