Skip to content

Commit

Permalink
[#195] ๐Ÿ—‘๏ธ ๋ถˆํ•„์š”ํ•œ ๊ณต๋ฐฑ ์‚ญ์ œ
Browse files Browse the repository at this point in the history
  • Loading branch information
junseopark0331 committed Dec 28, 2023
1 parent 225e828 commit ebadb83
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import Service
final class ClubTypeCardButton: UIButton {
// MARK: - Properties
private let type: ClubType

// MARK: - Init
init(type: ClubType, isGray: Bool = false) {
self.type = type
Expand All @@ -18,11 +19,11 @@ final class ClubTypeCardButton: UIButton {
setImage(isGray ? GCMSAsset.Images.gcmsEditorialGray.image : GCMSAsset.Images.gcmsEditorial.image, for: .normal)
}
}

required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}

public func setImageState(isGray: Bool) {
switch type {
case .major:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ final class NewClubStepView: UIView {
$0.layer.cornerRadius = 2
}
private let shape = CAShapeLayer()

var selectedBackgroundColor = GCMSAsset.Colors.gcmsMainColor.color
var unSelectedBackgroundColor = GCMSAsset.Colors.gcmsGray4.color
var selectedLevelTintColor = GCMSAsset.Colors.gcmsGray1.color
Expand All @@ -23,7 +23,7 @@ final class NewClubStepView: UIView {
var isSelected: Bool = false {
didSet { update() }
}

init(
level: Int,
title: String
Expand All @@ -35,11 +35,11 @@ final class NewClubStepView: UIView {
self.levelLabel.text = "\(level)"
self.titleLabel.text = title
}

required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}

override func draw(_ rect: CGRect) {
super.draw(rect)
drawPath(rect: rect)
Expand All @@ -54,7 +54,7 @@ private extension NewClubStepView {
path.addLine(to: CGPoint(x: rect.width/2 - 4, y: rect.maxY))
path.addLine(to: CGPoint(x: rect.width/2 + 4, y: rect.maxY))
path.close()

shape.fillColor = isSelected ? selectedBackgroundColor.cgColor : unSelectedBackgroundColor.cgColor
shape.path = path.cgPath
self.layer.addSublayer(shape)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ final class NewClubSteppedProgressBar: UIView {
addView()
setLayout()
}

required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ final class NewClubTextField: UITextField {
self.placeholder = placeholder
configureView()
}

required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
Expand Down

0 comments on commit ebadb83

Please sign in to comment.