Skip to content

Commit

Permalink
♻️ :: CommonFeature WMLabel 적용
Browse files Browse the repository at this point in the history
IBOutlet은 제외ㅎ
  • Loading branch information
youn9k committed Nov 29, 2023
1 parent faa2cec commit 42cf53e
Showing 1 changed file with 3 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,8 @@ import SnapKit
import Then

public final class ChartUpdateTimeView: UIView {
private let updateTimeLabel = UILabel().then {
$0.font = DesignSystemFontFamily.Pretendard.light.font(size: 12)
$0.textColor = DesignSystemAsset.GrayColor.gray600.color
}
private let updateTimeLabel = WMLabel(text: "업데이트", textColor: DesignSystemAsset.GrayColor.gray600.color, font: .t7(weight: .light), alignment: .left, lineHeight: UIFont.WMFontSystem.t7().lineHeight, kernValue: -0.5)

private let updateTimeImageView = UIImageView().then {
$0.image = DesignSystemAsset.Chart.check.image
}
Expand All @@ -33,12 +31,7 @@ public final class ChartUpdateTimeView: UIView {
}

public func setUpdateTime(updateTime: String) {
let attributedString = NSMutableAttributedString(string: updateTime)
attributedString.addAttributes([.font: DesignSystemFontFamily.Pretendard.light.font(size: 12),
.foregroundColor: DesignSystemAsset.GrayColor.gray600.color,
.kern: -0.5],
range: NSRange(location: 0, length: attributedString.string.count))
updateTimeLabel.attributedText = attributedString
updateTimeLabel.text = updateTime
}
}

Expand Down

0 comments on commit 42cf53e

Please sign in to comment.