Skip to content

Commit

Permalink
๐ŸŽจ :: ์ฝ”๋“œ Formatting ์ ์šฉ
Browse files Browse the repository at this point in the history
  • Loading branch information
baekteun committed Dec 8, 2024
1 parent d3cab9e commit 30c3780
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import Utility
public final class FaqContentViewController: UIViewController, ViewControllerFromStoryBoard {
@IBOutlet weak var tableView: UITableView!

var viewModel: FAQContentViewModel!
var viewModel: FAQContentViewModel!

override public func viewDidLoad() {
super.viewDidLoad()
Expand Down Expand Up @@ -71,12 +71,16 @@ extension FaqContentViewController: UITableViewDataSource {

public func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
guard let questionCell = tableView
.dequeueReusableCell(withIdentifier: "FAQQuestionTableViewCell", for: indexPath) as? FAQQuestionTableViewCell
.dequeueReusableCell(
withIdentifier: "FAQQuestionTableViewCell",
for: indexPath
) as? FAQQuestionTableViewCell
else {
return UITableViewCell()
}
guard let answerCell = tableView
.dequeueReusableCell(withIdentifier: "FAQAnswerTableViewCell", for: indexPath) as? FAQAnswerTableViewCell else {
.dequeueReusableCell(withIdentifier: "FAQAnswerTableViewCell", for: indexPath) as? FAQAnswerTableViewCell
else {
return UITableViewCell()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ final class FAQAnswerTableViewCell: UITableViewCell {

override func awakeFromNib() {
super.awakeFromNib()
if Thread.isMainThread {
MainActor.assumeIsolated {
answerLabel.font = DesignSystemFontFamily.Pretendard.medium.font(size: 14)
answerLabel.setTextWithAttributes(kernValue: -0.5, lineSpacing: 6)
if Thread.isMainThread {
MainActor.assumeIsolated {
answerLabel.font = DesignSystemFontFamily.Pretendard.medium.font(size: 14)
answerLabel.setTextWithAttributes(kernValue: -0.5, lineSpacing: 6)
}
} else {
Task { @MainActor in
answerLabel.font = DesignSystemFontFamily.Pretendard.medium.font(size: 14)
answerLabel.setTextWithAttributes(kernValue: -0.5, lineSpacing: 6)
}
}
} else {
Task { @MainActor in
answerLabel.font = DesignSystemFontFamily.Pretendard.medium.font(size: 14)
answerLabel.setTextWithAttributes(kernValue: -0.5, lineSpacing: 6)
}
}
}
}

Expand Down

0 comments on commit 30c3780

Please sign in to comment.