From 21dfaef1032e0194640f62ec23699a5c96ea5f5b Mon Sep 17 00:00:00 2001 From: Kim Minjae Date: Sat, 22 Jul 2023 02:34:02 +0900 Subject: [PATCH] =?UTF-8?q?[CHORE]=20=EB=A0=88=EC=9D=B4=EC=95=84=EC=9B=83?= =?UTF-8?q?=20=EC=88=98=EC=A0=95=20(#121)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Scenes/Article/ArticleDetail/Cells/BodyTableViewCell.swift | 1 + .../ViewControllers/ArticleDetailViewController.swift | 1 + .../Curriculum/Cells/CurriculumArticleByWeekTableViewCell.swift | 1 + .../Scenes/Curriculum/Cells/CurriculumTableViewCell.swift | 1 + 4 files changed, 4 insertions(+) diff --git a/LionHeart-iOS/LionHeart-iOS/Scenes/Article/ArticleDetail/Cells/BodyTableViewCell.swift b/LionHeart-iOS/LionHeart-iOS/Scenes/Article/ArticleDetail/Cells/BodyTableViewCell.swift index 54eb16d8..9636bbd7 100644 --- a/LionHeart-iOS/LionHeart-iOS/Scenes/Article/ArticleDetail/Cells/BodyTableViewCell.swift +++ b/LionHeart-iOS/LionHeart-iOS/Scenes/Article/ArticleDetail/Cells/BodyTableViewCell.swift @@ -74,6 +74,7 @@ private extension BodyTableViewCell { guard let model else { return } if let caption = model.caption { captionLabel.text = caption + captionLabel.setTextWithLineHeight(lineHeight: 22) captionLabel.snp.makeConstraints { make in make.top.equalTo(bodyLabel.snp.bottom).offset(8) make.leading.trailing.equalTo(bodyLabel) diff --git a/LionHeart-iOS/LionHeart-iOS/Scenes/Article/ArticleDetail/ViewControllers/ArticleDetailViewController.swift b/LionHeart-iOS/LionHeart-iOS/Scenes/Article/ArticleDetail/ViewControllers/ArticleDetailViewController.swift index 2a45608a..f24bf1cf 100644 --- a/LionHeart-iOS/LionHeart-iOS/Scenes/Article/ArticleDetail/ViewControllers/ArticleDetailViewController.swift +++ b/LionHeart-iOS/LionHeart-iOS/Scenes/Article/ArticleDetail/ViewControllers/ArticleDetailViewController.swift @@ -89,6 +89,7 @@ extension ArticleDetailViewController { do { let bookmarkRequest = BookmarkRequest(articleId: articleId, bookmarkStatus: isSelected) try await BookmarkService.shared.postBookmark(bookmarkRequest) + LHToast.show(message: "북마크가 추가되었습니다") isBookMarked = isSelected } catch { guard let error = error as? NetworkError else { return } diff --git a/LionHeart-iOS/LionHeart-iOS/Scenes/Curriculum/Cells/CurriculumArticleByWeekTableViewCell.swift b/LionHeart-iOS/LionHeart-iOS/Scenes/Curriculum/Cells/CurriculumArticleByWeekTableViewCell.swift index f02409cc..dd2f3932 100644 --- a/LionHeart-iOS/LionHeart-iOS/Scenes/Curriculum/Cells/CurriculumArticleByWeekTableViewCell.swift +++ b/LionHeart-iOS/LionHeart-iOS/Scenes/Curriculum/Cells/CurriculumArticleByWeekTableViewCell.swift @@ -26,6 +26,7 @@ final class CurriculumArticleByWeekTableViewCell: UITableViewCell, TableViewCell } articleTagLabel.text = inputData.articleTags.joined(separator: " · ") articleContentLabel.text = inputData.articleContent + articleContentLabel.setTextWithLineHeight(lineHeight: 22) articleContentLabel.lineBreakStrategy = .pushOut articleContentLabel.lineBreakMode = .byTruncatingTail bookMarkButton.isSelected = inputData.isArticleBookmarked diff --git a/LionHeart-iOS/LionHeart-iOS/Scenes/Curriculum/Cells/CurriculumTableViewCell.swift b/LionHeart-iOS/LionHeart-iOS/Scenes/Curriculum/Cells/CurriculumTableViewCell.swift index 468ac471..149e1052 100644 --- a/LionHeart-iOS/LionHeart-iOS/Scenes/Curriculum/Cells/CurriculumTableViewCell.swift +++ b/LionHeart-iOS/LionHeart-iOS/Scenes/Curriculum/Cells/CurriculumTableViewCell.swift @@ -105,6 +105,7 @@ final class CurriculumTableViewCell: UITableViewCell, TableViewCellRegisterDeque self.weekTitleLabel.text = inputData.curriculumWeekTitle self.contentImageView.image = inputData.curriculumImage self.contentTextLabel.text = inputData.curriculumText + self.contentTextLabel.setTextWithLineHeight(lineHeight: 22) self.curriculumContentStackView.isHidden = !inputData.isExpanded // false -> true -> 안보이게됨 self.weekLabel.textColor = inputData.isExpanded ? .designSystem(.componentLionRed)