From 37c3cf84b84502a5139d2bec9fec0e3dcf586d78 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=EC=9D=B4=EA=B2=BD=EB=AF=BC?=
<74659491+meenyweeny@users.noreply.github.com>
Date: Sat, 30 Jul 2022 00:14:09 +0900
Subject: [PATCH] [#142] hide main component
---
.../Screen/Main/Base.lproj/Main.storyboard | 17 ++++++++++-------
.../Main/Controller/MainViewController.swift | 10 ++++------
2 files changed, 14 insertions(+), 13 deletions(-)
diff --git a/Deartoday/Deartoday/Screen/Main/Base.lproj/Main.storyboard b/Deartoday/Deartoday/Screen/Main/Base.lproj/Main.storyboard
index 446c3e9..d6294ed 100644
--- a/Deartoday/Deartoday/Screen/Main/Base.lproj/Main.storyboard
+++ b/Deartoday/Deartoday/Screen/Main/Base.lproj/Main.storyboard
@@ -109,7 +109,7 @@
-
+
@@ -123,16 +123,17 @@
-
+
+
@@ -141,7 +142,7 @@
@@ -245,19 +246,19 @@
@@ -333,6 +334,8 @@
+
+
diff --git a/Deartoday/Deartoday/Screen/Main/Controller/MainViewController.swift b/Deartoday/Deartoday/Screen/Main/Controller/MainViewController.swift
index fc88d53..4d1ea48 100644
--- a/Deartoday/Deartoday/Screen/Main/Controller/MainViewController.swift
+++ b/Deartoday/Deartoday/Screen/Main/Controller/MainViewController.swift
@@ -21,6 +21,7 @@ final class MainViewController: UIViewController {
@IBOutlet weak var checkTimeTravelView: UIView!
@IBOutlet weak var checkMessageView: UIView!
@IBOutlet var iconImageViewCollection: [UIImageView]!
+ @IBOutlet var stackViewCollection: [UIStackView]!
@IBOutlet var messageCountLabelCollection: [UILabel]!
@IBOutlet var dateLabelCollection: [UILabel]!
@IBOutlet weak var pageControlBottomConstraint: NSLayoutConstraint!
@@ -73,6 +74,9 @@ final class MainViewController: UIViewController {
messageCountLabelCollection.forEach {
$0.text = count > 99 ? "99+" : "\(count)"
}
+ stackViewCollection.forEach {
+ $0.isHidden = false
+ }
}
private func setGesture() {
@@ -150,18 +154,12 @@ extension MainViewController {
// MARK: - Component UI Setting functions
extension MainViewController {
- ///Color Asset 추가 시 refactoring 가능
private func setLabelUI() {
messageCountLabelCollection.forEach {
- $0.textColor = .blue02
$0.font = .p3
}
dateLabelCollection.forEach {
$0.font = .h0
- $0.textColor = .lightBlue00
- }
- iconImageViewCollection.forEach {
- $0.tintColor = .blue02
}
}