Skip to content

Commit

Permalink
Merge pull request #393 from OMZigak/fix/#392-promise-qa
Browse files Browse the repository at this point in the history
[fix] 최종 QA 반영
  • Loading branch information
youz2me authored Sep 22, 2024
2 parents 1974e03 + f61efb4 commit 7486c03
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class ReadyStatusProgressView: BaseView {
}

let readyStartTitleLabel: UILabel = UILabel().then {
$0.setText("준비를 시작 시 눌러주세요", style: .label02, color: .gray5)
$0.setText("준비 시작 시 눌러주세요", style: .label02, color: .gray5)
}

let moveStartTimeLabel: UILabel = UILabel().then {
Expand All @@ -59,7 +59,7 @@ class ReadyStatusProgressView: BaseView {
}

let moveStartTitleLabel: UILabel = UILabel().then {
$0.setText("이동을 시작 시 눌러주세요", style: .label02, color: .gray5)
$0.setText("이동 시작 시 눌러주세요", style: .label02, color: .gray5)
$0.isHidden = true
}

Expand All @@ -83,7 +83,7 @@ class ReadyStatusProgressView: BaseView {
}

let arrivalTitleLabel: UILabel = UILabel().then {
$0.setText("도착 시작 시 눌러주세요", style: .label02, color: .gray5)
$0.setText("도착 완료 시 눌러주세요", style: .label02, color: .gray5)
$0.isHidden = true
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,15 @@ extension ReadyStatusViewController {
$0.statusProgressView.setProgress(1, animated: false)
}
}

owner.rootView.popUpImageView.do {
switch state {
case .none, .ready, .move:
$0.isHidden = false
case .done:
$0.isHidden = true
}
}
}

viewModel.requestReadyTime.bindOnMain(with: self) { owner, time in
Expand Down
5 changes: 4 additions & 1 deletion KkuMulKum/Source/Promise/ViewModel/PromiseViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,10 @@ extension PromiseViewModel {
guard let promiseDate = dateFormatter.date(from: promiseTime) else { return promiseTime }

let timeFormatter = DateFormatter()
timeFormatter.dateFormat = "M월 d일 a H:mm"
timeFormatter.dateFormat = "M월 d일 a h:mm"
timeFormatter.locale = Locale(identifier: "ko_KR")
timeFormatter.amSymbol = "AM"
timeFormatter.pmSymbol = "PM"

return timeFormatter.string(from: promiseDate)
}
Expand Down

0 comments on commit 7486c03

Please sign in to comment.