-
Notifications
You must be signed in to change notification settings - Fork 6
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
[Feat] #212 - 러닝 기록 상세페이지 메뉴 변경 #219
The head ref may contain hidden characters: "#212---\uB7EC\uB2DD-\uAE30\uB85D-\uC0C1\uC138\uD398\uC774\uC9C0-\uBA54\uB274-\uBCC0\uACBD"
[Feat] #212 - 러닝 기록 상세페이지 메뉴 변경 #219
Conversation
러닝 기록 상세페이지 메뉴를 드롭다운으로 수정 하였습니다.
if textField == self.courseTitleTextField { | ||
self.finishEditButtonDidTap() | ||
if finishEditButton.isEnabled == true { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
finishEditButton.isEnabled == true
이 코드는 수정을 한 상태를 표현하였기 때문에, 텍스트가 수정되었을 때만 return
키보드를 눌러야 작동이 되게 짰습니다.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
새로운거 개발하는 와중에도 리팩토링 하는 모습 .. 진짜 본받겠습니다 😉
텍스트 필드의 텍스트(TextField.text)를 눌러야 .editingChanged 가 되는데.. 왜 텍스트 필드를 누르면 안 될까요..?
-> 근데 이건 무슨 상황인지 잘 파악이 안되는데 다시 설명해주실 수 있나요 ㅜㅜ
} | ||
|
||
let cancelAction = UIAlertAction(title: "닫기", style: .cancel, handler: nil) | ||
dropDownTouchAction(menu: menu) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
더 나은 코드를 향해 항상 수정하는 모습 너무 보기 좋아요 👍🏻
private lazy var courseTitleTextField = UITextField().then { | ||
|
||
$0.attributedPlaceholder = NSAttributedString( | ||
string: "글 제목", | ||
attributes: [.font: UIFont.h4, .foregroundColor: UIColor.g3] | ||
) | ||
$0.font = .h4 | ||
$0.textColor = .g1 | ||
$0.addLeftPadding(width: 2) | ||
$0.addTarget(self, action: #selector(textFieldTextDidChange), for: .editingChanged) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
흠 가서 해봤는데 왜 text 부분 눌러야지만 수정되는지 모르겠네요 ,, 딱히 의도가 있을거 같지는 않은데 ㅠ
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
흑흑.. 배포 전에 꼭 수정
🌱 작업한 내용
🌱 PR Point
TextField.text
)를 눌러야.editingChanged
가 되는데.. 왜 텍스트 필드를 누르면 안 될까요..? ,, 기존 코드의 어떤 문제점이 있을지 ... !?📸 스크린샷
📮 관련 이슈