From ab23a39243e691880bc0925ddde93bc1ede88311 Mon Sep 17 00:00:00 2001 From: Eunbin Kwon Date: Sun, 22 May 2022 19:15:42 +0900 Subject: [PATCH] =?UTF-8?q?[feat]=20=EC=A0=80=EA=B8=88=ED=86=B5=20?= =?UTF-8?q?=EC=83=9D=EC=84=B1=20=ED=94=BC=EC=BB=A4=20=ED=95=98=EB=8B=A8=20?= =?UTF-8?q?=EB=AC=B8=EA=B5=AC=20=EC=82=AD=EC=A0=9C=20#204?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Storyboard/Base.lproj/Main.storyboard | 13 ++----------- .../NewBottleDatePickerViewController.swift | 19 +------------------ 2 files changed, 3 insertions(+), 29 deletions(-) diff --git a/Happiggy-bank/Happiggy-bank/Storyboard/Base.lproj/Main.storyboard b/Happiggy-bank/Happiggy-bank/Storyboard/Base.lproj/Main.storyboard index 269972fa..b3e10d17 100644 --- a/Happiggy-bank/Happiggy-bank/Storyboard/Base.lproj/Main.storyboard +++ b/Happiggy-bank/Happiggy-bank/Storyboard/Base.lproj/Main.storyboard @@ -1,9 +1,9 @@ - + - + @@ -1216,20 +1216,12 @@ - - - @@ -1242,7 +1234,6 @@ - diff --git a/Happiggy-bank/Happiggy-bank/ViewController/NewBottleDatePickerViewController.swift b/Happiggy-bank/Happiggy-bank/ViewController/NewBottleDatePickerViewController.swift index 16ba6703..387791c4 100644 --- a/Happiggy-bank/Happiggy-bank/ViewController/NewBottleDatePickerViewController.swift +++ b/Happiggy-bank/Happiggy-bank/ViewController/NewBottleDatePickerViewController.swift @@ -22,9 +22,7 @@ final class NewBottleDatePickerViewController: UIViewController { /// 개봉 시점 선택하는 피커 뷰 @IBOutlet weak var pickerView: UIPickerView! - - /// 개봉 날짜 표시하는 라벨 - @IBOutlet weak var openDateLabel: UILabel! + /// 유리병 데이터 전달하는 델리게이트 var delegate: DataProvider? @@ -81,7 +79,6 @@ final class NewBottleDatePickerViewController: UIViewController { /// 라벨 초기 세팅하는 함수 private func initializeLabel() { setTopLabel() - setOpenDateLabel() } /// 상단 라벨 세팅 @@ -91,19 +88,6 @@ final class NewBottleDatePickerViewController: UIViewController { self.topLabel.textColor = .customLabel } - /// 개봉 예정일 라벨 세팅 - private func setOpenDateLabel() { - guard let periodIndex = self.viewModel.bottleData?.periodIndex - else { return } - let endDate = viewModel.endDate( - from: Date(), - after: periodIndex - ) - self.openDateLabel.text = viewModel.openDateString(of: endDate) - self.openDateLabel.font = .systemFont(ofSize: FontSize.openDateLabelText) - self.openDateLabel.textColor = .customTint - } - /// 피커 뷰 초기 상태 세팅하는 함수 /// 처음엔 가운데로, 이후엔 선택된 행의 인덱스에 따라 설정됨 private func initializePickerView() { @@ -220,6 +204,5 @@ extension NewBottleDatePickerViewController: UIPickerViewDelegate { else { return } rowView.textColor = .customTint - setOpenDateLabel() } }