diff --git a/Projects/Features/MyInfoFeature/Sources/ViewControllers/FAQ/FaqContentViewController.swift b/Projects/Features/MyInfoFeature/Sources/ViewControllers/FAQ/FaqContentViewController.swift index f1307eb95..596c91dd5 100644 --- a/Projects/Features/MyInfoFeature/Sources/ViewControllers/FAQ/FaqContentViewController.swift +++ b/Projects/Features/MyInfoFeature/Sources/ViewControllers/FAQ/FaqContentViewController.swift @@ -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() @@ -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() } diff --git a/Projects/Features/MyInfoFeature/Sources/Views/FAQAnswerTableViewCell.swift b/Projects/Features/MyInfoFeature/Sources/Views/FAQAnswerTableViewCell.swift index 39592a265..fc90fb4d7 100644 --- a/Projects/Features/MyInfoFeature/Sources/Views/FAQAnswerTableViewCell.swift +++ b/Projects/Features/MyInfoFeature/Sources/Views/FAQAnswerTableViewCell.swift @@ -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) - } - } } }