Skip to content

Commit

Permalink
[Fix] '일정 등록' View 1, 2 Label 업데이트 코드 수정 (#256)
Browse files Browse the repository at this point in the history
  • Loading branch information
ParkSY0919 committed Nov 9, 2024
1 parent 609109d commit 74f46cc
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,12 @@ final class InAddScheduleFirstView: BaseView {

dateNameTextField.do {
$0.setPlaceholder(placeholder: StringLiterals.AddCourseOrSchedule.AddFirstView.dateNmaePlaceHolder,
fontColor: .gray300,
fontColor: UIColor(resource: .gray300),
font: .suit(.body_semi_13))
$0.setLeftPadding(amount: 16)
$0.setRightPadding(amount: 6)
$0.defaultTextAttributes = [.font: UIFont.systemFont(ofSize: 13, weight: .semibold),
.foregroundColor: UIColor(resource: .drBlack)]
}

visitDateLabel.do {
Expand Down Expand Up @@ -233,14 +235,12 @@ extension InAddScheduleFirstView {

func updateDateName(text: String) {
dateNameTextField.text = text
dateNameTextField.font = UIFont.systemFont(ofSize: 13, weight: .semibold)
}

func updateVisitDate(text: String) {
visitDateLabel.do {
$0.text = text
$0.textColor = UIColor(resource: .drBlack)
}
visitDateLabel.setLabel(text: text,
textColor: UIColor(resource: .drBlack),
font: UIFont.suit(.body_semi_13))
}

func updatedateStartTime(text: String) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,28 +114,27 @@ final class InAddScheduleSecondView: BaseView {
font: .suit(.body_semi_13))
$0.setLeftPadding(amount: 14)
$0.setRightPadding(amount: 4)
$0.textAlignment = .left
$0.backgroundColor = UIColor(resource: .gray100)
$0.layer.borderWidth = 0
$0.layer.cornerRadius = 14
$0.autocorrectionType = .no
$0.spellCheckingType = .no
let attributes: [NSAttributedString.Key: Any] = [.font: UIFont.systemFont(ofSize: 13, weight: .semibold), .foregroundColor: UIColor(resource: .drBlack)]
$0.defaultTextAttributes = attributes
$0.defaultTextAttributes = [.font: UIFont.systemFont(ofSize: 13, weight: .semibold),
.foregroundColor: UIColor(resource: .drBlack)]
$0.textAlignment = .left
}

timeRequireTextField.do {
$0.setPlaceholder(
placeholder: StringLiterals.AddCourseOrSchedule.AddSecondView.timeRequiredPlaceHolder,
fontColor: UIColor(resource: .gray300),
font: .suit(.body_semi_13)
)
$0.textAlignment = .center
$0.setPlaceholder(placeholder: StringLiterals.AddCourseOrSchedule.AddSecondView.timeRequiredPlaceHolder,
fontColor: UIColor(resource: .gray300),
font: .suit(.body_semi_13))
$0.backgroundColor = UIColor(resource: .gray100)
$0.layer.borderWidth = 0
$0.layer.cornerRadius = 14
$0.autocorrectionType = .no
$0.spellCheckingType = .no
$0.defaultTextAttributes = [.font: UIFont.systemFont(ofSize: 13, weight: .semibold),
.foregroundColor: UIColor(resource: .drBlack)]
$0.textAlignment = .center
}

addPlaceButton.do {
Expand All @@ -161,12 +160,10 @@ extension InAddScheduleSecondView {

func updateDatePlace(text: String) {
datePlaceTextField.text = text
datePlaceTextField.font = UIFont.systemFont(ofSize: 13, weight: .semibold)
}

func updatetimeRequire(text: String) {
timeRequireTextField.text = text
timeRequireTextField.font = UIFont.suit(.body_semi_13)
}

func changeAddPlaceButtonState(flag: Bool) {
Expand Down

0 comments on commit 74f46cc

Please sign in to comment.