-
Notifications
You must be signed in to change notification settings - Fork 1
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] 회원가입 UI + API 수정 (+ 로그인 UI) #462
Conversation
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 사용해서 리펙토링 한거 멋지당 ㅎㅎ
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.
브랜치 이동해서 스토리보드 확인했는데, IBAction연결 따로 해주면 굳이 SignUpModalVC
를 생성해서 HalfModalVC
내부를 바꿔주지 않아도 될 것 같아요!
조금 귀찮은 작업이더라도 제가 만든 파일의 용도와 다르게 사용되고 있어서 바꿔주시면 감사하겠습니다!!!
필요하다면 타이틀 변경 메서드는 HalfModalVC()에 만들어두겠습니다!!
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.
확인했습니당! 번거로웠을텐데 수고했어~!!
func setMajorNameLabel(data: String) { | ||
majorNameLabel.text = data | ||
} | ||
} |
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.
굳굳!!
@IBAction func tapFirstMajorSelectBtn(_ sender: Any) { | ||
showMajorSelectModal(enterType: .firstMajor) | ||
} | ||
|
||
@IBAction func tapFirstMajorStartBtn(_ sender: Any) { | ||
showMajorSelectModal(enterType: .firstMajorStart) | ||
} | ||
|
||
@IBAction func tapSecondMajorSelectBtn(_ sender: Any) { | ||
showMajorSelectModal(enterType: .secondMajor) | ||
} | ||
|
||
@IBAction func tapSecondMajorStartBtn(_ sender: Any) { | ||
showMajorSelectModal(enterType: .secondMajorStart) | ||
} | ||
|
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.
아주 조아용
case .firstMajor, .secondMajor: | ||
slideVC.vcType = .search | ||
case .firstMajorStart, .secondMajorStart: | ||
slideVC.vcType = .basic |
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 var startList: [String] = [] | ||
private var majorList: [MajorInfoModel] = [] | ||
private var filteredList: [MajorInfoModel] = [] | ||
private var dataSourceForMajor: UITableViewDiffableDataSource<Section, MajorInfoModel>? | ||
private var snapshotForMajor: NSDiffableDataSourceSnapshot<Section, MajorInfoModel>? | ||
private var dataSourceForStart: UITableViewDiffableDataSource<Section, String>? | ||
private var snapshotForStart: NSDiffableDataSourceSnapshot<Section, String>? | ||
var selectMajorDelegate: SendUpdateModalDelegate? | ||
var vcType: ModalType = .basic | ||
var cellType: MajorCellType = .basic |
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 setMajorTableViewDataSource() { | ||
switch enterType { | ||
case .firstMajor, .secondMajor: | ||
self.dataSourceForMajor = UITableViewDiffableDataSource<Section, MajorInfoModel>(tableView: self.majorTV) { (tableView, indexPath, data) -> UITableViewCell? in | ||
guard let cell = tableView.dequeueReusableCell(withIdentifier: MajorTVC.className, for: indexPath) as? MajorTVC else { preconditionFailure() } | ||
cell.cellType = self.cellType | ||
cell.setData(majorName: data) | ||
return cell | ||
} | ||
case .firstMajorStart, .secondMajorStart: | ||
self.dataSourceForStart = UITableViewDiffableDataSource<Section, String>(tableView: self.majorTV) { (tableView, indexPath, data) -> UITableViewCell? in | ||
guard let cell = tableView.dequeueReusableCell(withIdentifier: MajorTVC.className, for: indexPath) as? MajorTVC else { preconditionFailure() } | ||
cell.cellType = self.cellType | ||
cell.setMajorNameLabel(data: data) | ||
return cell |
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.
굳굳~
🍎 관련 이슈
closed #459
🍎 변경 사항 및 이유
SignUpMajorInfoVC
) 함수 일부를 Rx로 리팩토링 + UI 최적화(for iPhone SE..)HalfModalVC
를 상속받아 회원가입 시에만 사용하는SignUpModalVC
생성🍎 PR Point
을 진행하면서 HalfModalVC에 있던 프로퍼티들 중에 private을 없앤 게 좀 있는데 은주언니 뭔가 문제될 거 있으면 말해조요!!
📸 ScreenShot
RPReplay_Final1663073965-1.mov