Skip to content

Commit

Permalink
🐛 :: [#1330] FAQ 페이지 number of lines 적용 안됨
Browse files Browse the repository at this point in the history
  • Loading branch information
baekteun authored and yongbeomkwak committed Dec 11, 2024
1 parent 8acdb2b commit 501bb91
Showing 1 changed file with 13 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,21 @@ class QuestionTableViewCell: UITableViewCell {

override func awakeFromNib() {
super.awakeFromNib()
if Thread.isMainThread {
MainActor.assumeIsolated {
categoryLabel.font = DesignSystemFontFamily.Pretendard.light.font(size: 12)
categoryLabel.setTextWithAttributes(kernValue: -0.5)
titleLabel.font = DesignSystemFontFamily.Pretendard.medium.font(size: 16)
titleLabel.setTextWithAttributes(kernValue: -0.5, lineSpacing: 5)
}
} else {
Task { @MainActor in
categoryLabel.font = DesignSystemFontFamily.Pretendard.light.font(size: 12)
categoryLabel.setTextWithAttributes(kernValue: -0.5)
titleLabel.font = DesignSystemFontFamily.Pretendard.medium.font(size: 16)
titleLabel.setTextWithAttributes(kernValue: -0.5, lineSpacing: 5)
categoryLabel.font = DesignSystemFontFamily.Pretendard.light.font(size: 12)
categoryLabel.setTextWithAttributes(kernValue: -0.5)
titleLabel.font = DesignSystemFontFamily.Pretendard.medium.font(size: 16)
titleLabel.setTextWithAttributes(kernValue: -0.5, lineSpacing: 5)
}
}
}
}

Expand Down

0 comments on commit 501bb91

Please sign in to comment.