Skip to content
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

[Fix] #178 - my page vc오타수정 #178

Merged
merged 2 commits into from
Aug 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions Runnect-iOS/Runnect-iOS/Presentation/MyPage/VC/MyPageVC.swift
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ final class MyPageVC: UIViewController {
$0.addGestureRecognizer(tap)
}

private let myRunningLevelLavel = UILabel()
private let myRunningLevelLabel = UILabel()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ㄷㄷ

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


private lazy var myRunningProgressBar = UIProgressView(progressViewStyle: .bar).then {
$0.translatesAutoresizingMaskIntoConstraints = false
Expand Down Expand Up @@ -196,7 +196,7 @@ extension MyPageVC {
self.myProfileNameLabel.text = model.user.nickname
self.myRunningProgressBar.setProgress(Float(model.user.levelPercent)/100, animated: false)
setMyRunningProgressPercentLabel(label: myRunnigProgressPercentLabel, model: model)
setMyRunningLevelLavel(label: myRunningLevelLavel, model: model)
setMyRunningLevelLabel(label: myRunningLevelLabel, model: model)
setMyProfileImage(model: model)
}

Expand All @@ -206,7 +206,7 @@ extension MyPageVC {
label.attributedText = attributedString
}

private func setMyRunningLevelLavel(label: UILabel, model: MyPageDto) {
private func setMyRunningLevelLabel(label: UILabel, model: MyPageDto) {
let attributedString = NSMutableAttributedString(string: "LV ", attributes: [.font: UIFont.h5, .foregroundColor: UIColor.g1])
attributedString.append(NSAttributedString(string: String(model.user.level), attributes: [.font: UIFont.h5, .foregroundColor: UIColor.g1]))
label.attributedText = attributedString
Expand Down Expand Up @@ -329,16 +329,16 @@ extension MyPageVC {
}

private func setRunningProgressLayout() {
myRunningProgressView.addSubviews(myRunningLevelLavel, myRunningProgressBar,
myRunningProgressView.addSubviews(myRunningLevelLabel, myRunningProgressBar,
myRunnigProgressPercentLabel)

myRunningLevelLavel.snp.makeConstraints { make in
myRunningLevelLabel.snp.makeConstraints { make in
make.top.equalToSuperview()
make.leading.equalToSuperview().offset(3)
}

myRunningProgressBar.snp.makeConstraints { make in
make.top.equalTo(myRunningLevelLavel.snp.bottom).offset(6)
make.top.equalTo(myRunningLevelLabel.snp.bottom).offset(6)
make.leading.trailing.equalToSuperview()
make.height.equalTo(11)
}
Expand Down Expand Up @@ -395,7 +395,7 @@ extension MyPageVC {
settingView.snp.makeConstraints { make in
make.top.equalTo(fourthDivideView.snp.bottom)
make.leading.trailing.equalToSuperview()
make.height.equalTo(60)
make.height.equalTo(100)
}

}
Expand Down