Skip to content

Commit

Permalink
[Fix] #100 - 인증하기 버튼 이슈 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
binisnil committed Apr 21, 2024
1 parent 01966d8 commit 7e48086
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,20 +49,19 @@ final class HomeViewController: BaseViewController {
private var isStepZero: Bool = true
private var guideURL = String()
/// 나중에 인증 완료 API 들어오면 바인딩
// private var isMissionCompleted: Bool = false
private var isMissionCompleted: Bool = false {
didSet {
if isMissionCompleted {
homeView.configureCheckButtonStyle(state: .checkCompleted)
}
print("미션 인증 이미지 완료 했는지 여부. 서버통신 하자마자 바뀌나요? -> \(isMissionCompleted)")
}
}
private var isStepCountCompleted: Bool = false {
didSet {
if isStepCountCompleted {
print("걸음수 달성 완료함!💦💦💦")
DispatchQueue.main.async {
self.homeView.configureCheckButtonStyle(state: .completed)
}
// DispatchQueue.main.async {
// self.homeView.configureCheckButtonStyle(state: .completed)
// }
}

if isStepCountCompleted && isMateStepCountCompleted {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ final class HomeView: BaseView {
$0.titleLabel?.font = .body5
$0.isEnabled = true
}
print("🔥🔥🔥🔥걸음수 인증 완료 버튼으로 바뀌었어요! 지금!")
case .checkCompleted:
checkMissionButton.do {
$0.backgroundColor = .gray100
Expand All @@ -181,6 +182,8 @@ final class HomeView: BaseView {
$0.titleLabel?.font = .body5
$0.isEnabled = false
}
print("🔥🔥🔥🔥미션 인증 완료 버튼으로 바뀌었어요! 지금!")

}
}

Expand Down

0 comments on commit 7e48086

Please sign in to comment.