From b3c5c53a768b7e078b71e3021ef5af96e68f51fe Mon Sep 17 00:00:00 2001 From: jeongdung-eo Date: Fri, 13 Jan 2023 18:31:00 +0900 Subject: [PATCH] =?UTF-8?q?[FIX]=20#84=20-=20=EC=B6=94=EC=B2=9C=EB=B7=B0?= =?UTF-8?q?=20Background=20Color=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ViewControllers/AchievementViewController.swift | 1 + .../RecommendScene/Cell/CustomTabBarCell.swift | 12 ++++++------ .../ViewControllers/RecommendViewController.swift | 2 +- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/NotToDo/NotToDo/Presentation/AchievementScene/ViewControllers/AchievementViewController.swift b/NotToDo/NotToDo/Presentation/AchievementScene/ViewControllers/AchievementViewController.swift index 84ee8fb..d17e4ed 100644 --- a/NotToDo/NotToDo/Presentation/AchievementScene/ViewControllers/AchievementViewController.swift +++ b/NotToDo/NotToDo/Presentation/AchievementScene/ViewControllers/AchievementViewController.swift @@ -239,6 +239,7 @@ extension AchievementViewController { extension AchievementViewController: FSCalendarDelegate, FSCalendarDataSource { func calendarCurrentPageDidChange(_ calendar: FSCalendar) { calendarView.calendar.reloadData() + reloadMonthData() calendarView.headerLabel.text = calendarView.dateFormatter.string(from: calendar.currentPage) } diff --git a/NotToDo/NotToDo/Presentation/RecommendScene/Cell/CustomTabBarCell.swift b/NotToDo/NotToDo/Presentation/RecommendScene/Cell/CustomTabBarCell.swift index 117cc13..0ec68a6 100644 --- a/NotToDo/NotToDo/Presentation/RecommendScene/Cell/CustomTabBarCell.swift +++ b/NotToDo/NotToDo/Presentation/RecommendScene/Cell/CustomTabBarCell.swift @@ -18,7 +18,7 @@ class CustomTabBarCell: UICollectionViewCell { // MARK: - UI Components - private var bgView = UIView() + private var backGroundView = UIView() private var icImage = UIImageView() private var titleLabel = UILabel() @@ -46,10 +46,10 @@ extension CustomTabBarCell { } private func setLayout() { - addSubview(bgView) - bgView.addSubviews(icImage, titleLabel) + addSubview(backGroundView) + backGroundView.addSubviews(icImage, titleLabel) - bgView.snp.makeConstraints { + backGroundView.snp.makeConstraints { $0.height.equalTo(82.adjusted) $0.width.equalTo(69.adjusted) $0.centerX.centerY.equalToSuperview() @@ -74,13 +74,13 @@ extension CustomTabBarCell { titleLabel.textColor = .nottodoGray1 titleLabel.font = .PretendardBold(size: 12.adjusted) icImage.image = UIImage(named: item.activeImage) - bgView.backgroundColor = .yellow_mild + backGroundView.backgroundColor = .yellow_mild } else { titleLabel.text = item.name titleLabel.textColor = .nottodoGray2 titleLabel.font = .PretendardMedium(size: 12.adjusted) icImage.image = UIImage(named: item.image) - bgView.backgroundColor = .clear + backGroundView.backgroundColor = .clear } } } diff --git a/NotToDo/NotToDo/Presentation/RecommendScene/ViewControllers/RecommendViewController.swift b/NotToDo/NotToDo/Presentation/RecommendScene/ViewControllers/RecommendViewController.swift index 480d8dd..223bc9b 100644 --- a/NotToDo/NotToDo/Presentation/RecommendScene/ViewControllers/RecommendViewController.swift +++ b/NotToDo/NotToDo/Presentation/RecommendScene/ViewControllers/RecommendViewController.swift @@ -60,7 +60,7 @@ extension RecommendViewController { } contentsCollectionView.do { - $0.backgroundColor = .systemGray6 + $0.backgroundColor = .BG $0.showsHorizontalScrollIndicator = false $0.isPagingEnabled = true }