Skip to content

Commit

Permalink
[#142] hide main component
Browse files Browse the repository at this point in the history
  • Loading branch information
meenyweeny committed Jul 29, 2022
1 parent 82e16f0 commit 37c3cf8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
17 changes: 10 additions & 7 deletions Deartoday/Deartoday/Screen/Main/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
<state key="normal" title="Button"/>
<buttonConfiguration key="configuration" style="plain" image="btnCircleBasic"/>
</button>
<stackView opaque="NO" userInteractionEnabled="NO" contentMode="scaleToFill" spacing="4" translatesAutoresizingMaskIntoConstraints="NO" id="7kC-Da-iAq">
<stackView hidden="YES" opaque="NO" userInteractionEnabled="NO" contentMode="scaleToFill" spacing="4" translatesAutoresizingMaskIntoConstraints="NO" id="7kC-Da-iAq">
<rect key="frame" x="601" y="186" width="30" height="22"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="icnMemo" translatesAutoresizingMaskIntoConstraints="NO" id="hYj-Yl-O37">
Expand All @@ -123,16 +123,17 @@
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text=" " textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Goz-jN-lWr">
<rect key="frame" x="26" y="0.0" width="4" height="22"/>
<fontDescription key="fontDescription" type="system" pointSize="15"/>
<nil key="textColor"/>
<color key="textColor" name="blue02"/>
<nil key="highlightedColor"/>
</label>
</subviews>
</stackView>
<stackView opaque="NO" userInteractionEnabled="NO" contentMode="scaleToFill" spacing="4" translatesAutoresizingMaskIntoConstraints="NO" id="5J9-qv-07r">
<stackView hidden="YES" opaque="NO" userInteractionEnabled="NO" contentMode="scaleToFill" spacing="4" translatesAutoresizingMaskIntoConstraints="NO" id="5J9-qv-07r">
<rect key="frame" x="564" y="485" width="30" height="22"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="icnTape" translatesAutoresizingMaskIntoConstraints="NO" id="UVK-NG-wji">
<rect key="frame" x="0.0" y="0.0" width="22" height="22"/>
<color key="tintColor" name="blue02"/>
<constraints>
<constraint firstAttribute="width" secondItem="UVK-NG-wji" secondAttribute="height" multiplier="1:1" id="Nty-DZ-FFK"/>
<constraint firstAttribute="height" constant="22" id="yaU-bL-Knj"/>
Expand All @@ -141,7 +142,7 @@
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text=" " textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="0PU-Ad-LwK">
<rect key="frame" x="26" y="0.0" width="4" height="22"/>
<fontDescription key="fontDescription" type="system" pointSize="15"/>
<nil key="textColor"/>
<color key="textColor" name="blue02"/>
<nil key="highlightedColor"/>
</label>
</subviews>
Expand Down Expand Up @@ -245,19 +246,19 @@
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Bbj-xS-lj5">
<rect key="frame" x="63" y="79" width="0.0" height="0.0"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="textColor"/>
<color key="textColor" name="lightBlue00"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="ZHd-XW-Ig2">
<rect key="frame" x="142.66666666666666" y="79" width="0.0" height="0.0"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="textColor"/>
<color key="textColor" name="lightBlue00"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="6ZP-5U-TGT">
<rect key="frame" x="201.66666666666666" y="79" width="0.0" height="0.0"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="textColor"/>
<color key="textColor" name="lightBlue00"/>
<nil key="highlightedColor"/>
</label>
</subviews>
Expand Down Expand Up @@ -333,6 +334,8 @@
<outletCollection property="messageCountLabelCollection" destination="Goz-jN-lWr" collectionClass="NSMutableArray" id="gYg-iW-Jk8"/>
<outletCollection property="iconImageViewCollection" destination="UVK-NG-wji" collectionClass="NSMutableArray" id="G9l-tv-4vW"/>
<outletCollection property="messageCountLabelCollection" destination="0PU-Ad-LwK" collectionClass="NSMutableArray" id="Jmp-rQ-b92"/>
<outletCollection property="stackViewCollection" destination="7kC-Da-iAq" collectionClass="NSMutableArray" id="uzG-3N-K9Q"/>
<outletCollection property="stackViewCollection" destination="5J9-qv-07r" collectionClass="NSMutableArray" id="Rd8-oO-Osv"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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!
Expand Down Expand Up @@ -73,6 +74,9 @@ final class MainViewController: UIViewController {
messageCountLabelCollection.forEach {
$0.text = count > 99 ? "99+" : "\(count)"
}
stackViewCollection.forEach {
$0.isHidden = false
}
}

private func setGesture() {
Expand Down Expand Up @@ -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
}
}

Expand Down

0 comments on commit 37c3cf8

Please sign in to comment.