-
Notifications
You must be signed in to change notification settings - Fork 0
[Feat] #48 - RegisterNormal 기능 80% 구현 #60
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
Conversation
hyowon612
left a comment
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.
까다로운 부분 많았을텐데 정말 수고 많았어요!!!👼🏻
|
|
||
| // MARK: - UI Components | ||
|
|
||
| private let background = UIView() |
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.
W3
네이밍 통일해주세용 (backgroundView)
| setUI() | ||
| setHieararchy() | ||
| setLayout() | ||
| selectedButton = startButton |
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.
W2
요건 무슨 코드인가용?
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.
datePicker를 처음 열었을 때 시작 날짜 버튼이 활성화 되어있어야하므로, 이를 위해 추가한 코드입니다!
|
|
||
|
|
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.
W3
공백 없애주세여
| readingStatusLabel.snp.makeConstraints { | ||
| $0.height.equalTo(42) | ||
| } | ||
|
|
||
| dropStatusLabel.snp.makeConstraints { | ||
| $0.height.equalTo(42) | ||
| } |
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.
W2
라벨은 높이 지정 안해줘도 폰트에 맞춰서 저절로 높이 잡히지 않나요?
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 func buttonDateStyle(of label: UILabel) { | ||
| label.do { | ||
| $0.makeAttribute(with: $0.text)? | ||
| .lineSpacing(spacingPercentage: 145) | ||
| .applyAttribute() | ||
| $0.font = .Label1 | ||
| } | ||
| } | ||
|
|
||
| private func buttonTitleStyle(of label: UILabel) { |
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.
W2
함수 네이밍 컨벤션 맞춰주세용!
| if self.isOn { | ||
| self.onStateLayout() | ||
| func changeState(_ state: Bool) { | ||
| UIView.animate(withDuration: self.animationDuration) { |
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.
W3
애니메이션도 넣었네용 짱 ~
|
|
||
| func onStateLayout() { | ||
| circleView.snp.updateConstraints { | ||
| $0.trailing.equalTo(barView.snp.trailing).inset(2.76) |
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.
W3
이 이쁘지 못한 inset은 디자인이 이렇게 돼있는거죠ㅜ?
정수로 수정하는게 좋을거같네욤
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.
전에 한번 이야기해봤는데 이렇게 의도한 거라고 하셔서 그대로 할 것 같아요 !!
| }() | ||
|
|
||
| popDatePicker.subscribe(onNext: { popDatePicker in | ||
| view.customDatePicker.isHidden = !popDatePicker |
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.
W3
popDatePicker가 Bool값인가여?
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.
맞습니당 좀더 보기 편하게 showDatePicker로 네이밍 변경할게요!
Guryss
left a comment
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.
굿굿 진짜 고생했어용 끝이 보이기 시작한드앜!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
||
| self.window = UIWindow(windowScene: windowScene) | ||
| self.window?.rootViewController = navigationController | ||
| self.window?.rootViewController = RegisterNormalViewController() | ||
| self.window?.makeKeyAndVisible() |
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.
W1;
SceneDelegate 복구시켜놓는거 까먹지 않깅
| let dateFormatter: DateFormatter = { | ||
| let formatter = DateFormatter() | ||
| formatter.dateFormat = "yyyy-MM-dd" | ||
| return formatter | ||
| }() |
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.
W2;
DateForMatter는 생각보다 시간복잡도가 매우 크다는 점 알고 계셨나용?
저도 세미나때 static 키워드를 정리하면서 알게 되었는데, 우리가 해당 속성을 다룬다면
꼭 알아두는게 좋을 것 같아 아티클 가져와봅니당 :)
한번 읽어보시고 추후에 DateForMatter를 어떻게 다뤄볼지 얘기해보아용
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.
대박 첨부해준 글 보니 완전 이해 잘 되네요 ㅋㅋㅋㅋㅋㅋㅋ 추후에 빼두는게 정말 중요하겠네요!!! 좋습니다
| private let totalStackView = UIStackView() | ||
|
|
||
| private let buttonStackView = UIStackView() | ||
|
|
||
| private let startButton = UIButton() | ||
| private let startButtonStackView = UIStackView() | ||
| private let startTitleLabel = UILabel() | ||
| private let startDateLabel = UILabel() | ||
|
|
||
| private let endButton = UIButton() | ||
| private let endButtonStackView = UIStackView() | ||
| private let endTitleLabel = UILabel() | ||
| private let endDateLabel = UILabel() |
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.
뚠뚠 🎵 stackView 사랑은 오늘도 진행중이라네 🎶
| private func bind() { | ||
|
|
||
| } | ||
|
|
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.
W1;
안사용하는 함수면 지워줘도 될듯합니당
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.
최고최고~
| buttonStatusSubject | ||
| .subscribe(onNext: { status in | ||
| view.customDatePicker.bindReadStatus(status: status) | ||
| }) | ||
| .disposed(by: disposeBag) | ||
| } |
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.
Rx 활용 최고네요 !!!
⭐️Issue
#48
🌟Motivation
RegisterNormal 기능 80% 구현 했습니다.. ( 플랫폼 버튼 누를 때 webView 띄우는 것만 남았습니다. )
🌟Key Changes
🌟Simulation
🌟To Reviewer
🌟Reference