Skip to content

Commit

Permalink
[FIX] TeamNADA#107 - 메인뷰 flip 딜레이 해결 및 backCard initCell() 간소화
Browse files Browse the repository at this point in the history
### Descriptions
- 2차릴리즈/share button 숨겨
  • Loading branch information
hyun99999 committed Dec 2, 2021
1 parent dcb247b commit de54db1
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions NADA-iOS-forRelease/Sources/Cells/CardCell/BackCardCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,16 @@ class BackCardCell: CardCell {
@IBOutlet weak var firstTmiLabel: UILabel!
@IBOutlet weak var secondTmiLabel: UILabel!
@IBOutlet weak var thirdTmiLabel: UILabel!
@IBOutlet weak var shareButton: UIButton!

// MARK: - View Life Cycle
override func awakeFromNib() {
super.awakeFromNib()
setUI()
}
// TODO: - 2차 릴리즈/공유기능
@IBAction func touchShareButton(_ sender: Any) {
}

// MARK: - Functions
static func nib() -> UINib {
Expand All @@ -51,6 +55,8 @@ extension BackCardCell {
secondTmiLabel.textColor = .white
thirdTmiLabel.font = .textRegular04
thirdTmiLabel.textColor = .white
// TODO: - 2차 릴리즈/공유기능
shareButton.isHidden = true
}

/// 서버에서 image 를 URL 로 가져올 경우 사용.
Expand Down
4 changes: 4 additions & 0 deletions NADA-iOS-forRelease/Sources/Cells/CardCell/BackCardCell.xib
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@
<rect key="frame" x="279" y="16" width="24" height="24"/>
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
<state key="normal" image="iconShare"/>
<connections>
<action selector="touchShareButton:" destination="gTV-IL-0wX" eventType="touchUpInside" id="9we-bF-B51"/>
</connections>
</button>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="😎 나의 취향" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="dHb-jJ-jng">
<rect key="frame" x="24" y="50" width="95.5" height="22"/>
Expand Down Expand Up @@ -202,6 +205,7 @@
<outlet property="putSauceEatImageView" destination="wc5-PI-Gnj" id="nYr-Y7-XJC"/>
<outlet property="sauceChickenImageView" destination="Nx7-Vx-MTP" id="EBI-QU-BQH"/>
<outlet property="secondTmiLabel" destination="IFb-AS-8IM" id="huF-sy-GN1"/>
<outlet property="shareButton" destination="3tv-wQ-4Ka" id="uQj-kM-ZBL"/>
<outlet property="sojuImageView" destination="yJZ-UI-FTC" id="a17-57-8Jd"/>
<outlet property="tasteTitleLabel" destination="dHb-jJ-jng" id="s2A-b9-Osl"/>
<outlet property="thirdTmiLabel" destination="9yf-Qs-VBg" id="e4s-7p-WmB"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,16 @@ class FrontCardCell: CardCell {
@IBOutlet weak var mbtiLabel: UILabel!
@IBOutlet weak var instagramIDLabel: UILabel!
@IBOutlet weak var linkURLLabel: UILabel!
@IBOutlet weak var shareButton: UIButton!

// MARK: - Life Cycle

override func awakeFromNib() {
super.awakeFromNib()
setUI()
}
@IBAction func touchShareButton(_ sender: Any) {
}

static func nib() -> UINib {
return UINib(nibName: Const.Xib.frontCardCell, bundle: Bundle(for: FrontCardCell.self))
Expand Down Expand Up @@ -53,6 +56,7 @@ extension FrontCardCell {
linkURLLabel.textColor = .white
linkURLLabel.numberOfLines = 2
linkURLLabel.lineBreakMode = .byTruncatingTail
shareButton.isHidden = true
}

/// 서버에서 image 를 URL 로 가져올 경우 사용.
Expand Down
4 changes: 4 additions & 0 deletions NADA-iOS-forRelease/Sources/Cells/CardCell/FrontCardCell.xib
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@
<rect key="frame" x="279" y="16" width="24" height="24"/>
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
<state key="normal" image="iconShare"/>
<connections>
<action selector="touchShareButton:" destination="gTV-IL-0wX" eventType="touchUpInside" id="Qqf-Lg-a4V"/>
</connections>
</button>
</subviews>
</view>
Expand Down Expand Up @@ -131,6 +134,7 @@
<outlet property="instagramIDLabel" destination="8oi-jO-fkf" id="eIE-ch-cCT"/>
<outlet property="linkURLLabel" destination="LqW-bV-yHr" id="vD7-qs-hSc"/>
<outlet property="mbtiLabel" destination="eyB-c0-PQB" id="waJ-j4-tRM"/>
<outlet property="shareButton" destination="aAt-PF-ce3" id="tNu-aM-Dsc"/>
<outlet property="titleLabel" destination="OeE-mZ-GcL" id="NIa-Yu-Bit"/>
<outlet property="userNameLabel" destination="cO6-DY-EUn" id="8AO-3c-DDH"/>
</connections>
Expand Down

0 comments on commit de54db1

Please sign in to comment.