From ef7010d2e90c67d4c40101751ffdbc3feb4c3881 Mon Sep 17 00:00:00 2001 From: Mijin Jeon Date: Mon, 1 Oct 2018 00:27:52 +0900 Subject: [PATCH] Feat: Modify UI of Today Extension - Change Autolayout - Change date label color --- .../Base.lproj/MainInterface.storyboard | 15 ++++++++------- .../TodayExtensionTableViewCell.swift | 5 +++-- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/MartHoliday/MartHolidayTodayExtension/Base.lproj/MainInterface.storyboard b/MartHoliday/MartHolidayTodayExtension/Base.lproj/MainInterface.storyboard index ed2e066..5a7d2fe 100644 --- a/MartHoliday/MartHolidayTodayExtension/Base.lproj/MainInterface.storyboard +++ b/MartHoliday/MartHolidayTodayExtension/Base.lproj/MainInterface.storyboard @@ -39,24 +39,25 @@ - - + - diff --git a/MartHoliday/MartHolidayTodayExtension/TodayExtensionTableViewCell.swift b/MartHoliday/MartHolidayTodayExtension/TodayExtensionTableViewCell.swift index 987225a..ff96623 100644 --- a/MartHoliday/MartHolidayTodayExtension/TodayExtensionTableViewCell.swift +++ b/MartHoliday/MartHolidayTodayExtension/TodayExtensionTableViewCell.swift @@ -19,6 +19,7 @@ class TodayExtensionTableViewCell: UITableViewCell { func setData(branch: Branch) { setDateButton() + branchTitle.adjustsFontSizeToFitWidth = true self.branchTitle.text = branch.displayName() guard let holiday = branch.holidays.first else { self.dateButton.setTitle("정보가 없습니다:(", for: .normal) @@ -31,8 +32,8 @@ class TodayExtensionTableViewCell: UITableViewCell { dateButton.contentEdgeInsets = UIEdgeInsets(top: 3, left: 5, bottom: 3, right: 5) dateButton.layer.cornerRadius = 7.0 dateButton.clipsToBounds = true - dateButton.backgroundColor = UIColor(named: "mh-navy") - dateButton.titleLabel?.textColor = UIColor.white + dateButton.backgroundColor = UIColor(named: "mh-mint") + dateButton.titleLabel?.textColor = UIColor.black dateButton.isUserInteractionEnabled = false }