Skip to content

Commit

Permalink
Merge pull request #92 from boostcampwm-2022/refactor/BrowseView
Browse files Browse the repository at this point in the history
Refactor/browse view
  • Loading branch information
jinwoong16 committed Dec 7, 2022
2 parents f080bcc + c625c67 commit e00332d
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"colors" : [
{
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0.792",
"green" : "0.741",
"red" : "0.682"
}
},
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,14 @@ final class BrowseCell: UITableViewCell {
static let reuseIdentifier = "BrowseCell"

// MARK: - Components
/**
아직 사용되고 있는 view는 아닙니다.
*/
private lazy var header: UserInfoView = {
return UserInfoView()
}()

private lazy var questTableView: UITableView = {
let questTableView = UITableView()
questTableView.backgroundColor = .maxLightGrey
questTableView.backgroundColor = .maxLightBlue
questTableView.layer.cornerRadius = 15

return questTableView
}()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ final class UserInfoView: UIStackView {
// MARK: - Components
private lazy var userImage: UIImageView = {
let userImage = UIImageView()
userImage.image = UIImage(systemName: "heart.fill")
userImage.image = UIImage(named: "StatusMax")
userImage.clipsToBounds = true
userImage.backgroundColor = .white

Expand All @@ -23,6 +23,8 @@ final class UserInfoView: UIStackView {

private lazy var welcomeLabel: UILabel = {
let welcomeLabel = UILabel()
welcomeLabel.textColor = .white
welcomeLabel.font = UIFont.boldSystemFont(ofSize: 22)

return welcomeLabel
}()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ final class QuestCell: UITableViewCell {
let questLabel = UILabel()
questLabel.text = "0"
questLabel.font = UIFont.boldSystemFont(ofSize: 16)
questLabel.textColor = .maxViolet

return questLabel
}()

Expand All @@ -45,6 +47,8 @@ final class QuestCell: UITableViewCell {
let countLabel = UILabel()
countLabel.text = "0"
countLabel.font = UIFont.boldSystemFont(ofSize: 16)
countLabel.textColor = .maxViolet

return countLabel
}()

Expand All @@ -69,7 +73,7 @@ final class QuestCell: UITableViewCell {
addSubview(questLabel)
addSubview(countLabel)

backgroundColor = .maxLightGrey
backgroundColor = UIColor(white: 1, alpha: 0)

progressView.snp.makeConstraints { make in
make.edges.equalToSuperview().inset(10)
Expand Down
1 change: 1 addition & 0 deletions DailyQuest/DailyQuest/Utils/UIColor+.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ extension UIColor {
static let maxRed = UIColor(named: "MaxRed") ?? .white
static let maxViolet = UIColor(named: "MaxViolet") ?? .white
static let maxYellow = UIColor(named: "MaxYellow") ?? .white
static let maxLightBlue = UIColor(named: "MaxLightBlue") ?? .white
}

0 comments on commit e00332d

Please sign in to comment.