-
Notifications
You must be signed in to change notification settings - Fork 0
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
Feature/enroll view model #79
Conversation
- 현재는 true, false인지 확인만 합니다... dismiss하는 과정과 뷰 새로고침을 어떻게 처리할지 고민해야할 듯 합니다.
…pwm-2022/iOS03-DailyQuest into feature/EnrollViewModel # Conflicts: # DailyQuest/DailyQuest/Presentation/Home/ViewController/EnrollViewController.swift
@@ -17,10 +20,11 @@ final class QuantityView: UIView { | |||
return titleLabel | |||
}() | |||
|
|||
private lazy var quantityField: UITextField = { | |||
private(set) lazy var quantityField: UITextField = { |
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.
아까 말씀하신 방법으로 바꾸신 거 확인했습니다!
input.quantityDidSet) { title, quantity in | ||
!title.isEmpty && !quantity.isEmpty | ||
} | ||
.asDriver(onErrorJustReturn: false) |
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.
리팩터때, 시작날과 끝나는날도 저쪽부분에 추가해서 핸들링해야할 것 같아요.
끝나는날이 시작하는날보다 이르면 안되니까..!
combineLatest같은 결합 연산자를 되게 잘 사용하셨네요. 저도 더 열심히 공부해봐야겠습니다. |
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.
고생하셨습니다. 잘봤습니당
var date = start | ||
|
||
while date <= end { | ||
guard let weekday = Calendar(identifier: .gregorian).dateComponents([.weekday], from: date).weekday else { return nil } |
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.
이부분은 extension 합쳐지면 더 짧게 고쳐질 것 같긴합니당
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.
refactor 주간에 고쳐봐야겠습니다 :)
import Foundation | ||
|
||
import RxSwift | ||
import RxCocoa |
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.
이건 Driver 때문이지요?
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.
넵 맞습니다. driver
은 RxCocoa
에 구현되어있어서요. 하나하나 전부 스케줄러를 지정해서 쓰는것보단 있는거 가져다 쓰는게 좋을 것 같아서요 ㅋㅋㅋ
📕 Issue Number
Close #77
📙 작업 내역
📘 작업 유형
📋 체크리스트
📝 PR 특이 사항
getDates(start:end:weekday:)
)을 usecase단으로 옮길 생각을 하고 있습니다.