forked from TeamNADA/NADA-iOS-ForRelease
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### Descriptions - FrontCardCell 구현 - 뷰컨과 연결 - 임시 파일 TempCell 삭제 - swiftlint 수정(function_parameter_count) : 파라미터의 갯수 제한 해제. ### Related Issue close TeamNADA#5
- Loading branch information
Showing
5 changed files
with
217 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
66 changes: 66 additions & 0 deletions
66
NADA-iOS-forRelease/Sources/Cells/CardCell/FrontCardCell.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
// | ||
// FrontCardCell.swift | ||
// NADA-iOS-forRelease | ||
// | ||
// Created by kimhyungyu on 2021/09/18. | ||
// | ||
|
||
import UIKit | ||
import VerticalCardSwiper | ||
|
||
class FrontCardCell: CardCell { | ||
|
||
// MARK: - Properties | ||
|
||
// MARK: - @IBOutlet Properties | ||
@IBOutlet weak var cardNameLabel: UILabel! | ||
@IBOutlet weak var detailCardNameLabel: UILabel! | ||
@IBOutlet weak var userNameLabel: UILabel! | ||
@IBOutlet weak var birthLabel: UILabel! | ||
@IBOutlet weak var mbtiLabel: UILabel! | ||
@IBOutlet weak var instagramImageView: UIImageView! | ||
@IBOutlet weak var instagramTextLabel: UILabel! | ||
@IBOutlet weak var instagramIDLabel: UILabel! | ||
@IBOutlet weak var linkImageView: UIImageView! | ||
@IBOutlet weak var linkTextLabel: UILabel! | ||
@IBOutlet weak var linkIDLabel: UILabel! | ||
|
||
override func awakeFromNib() { | ||
super.awakeFromNib() | ||
|
||
setUI() | ||
} | ||
} | ||
|
||
// MARK: - Extensions | ||
|
||
extension FrontCardCell { | ||
private func setUI() { | ||
// hidden 에 대한 속성도 여기 쓰자. | ||
|
||
// instagramImageView.image = UIImage(named: "instagramLogoImg") | ||
instagramTextLabel.text = "Instagram" | ||
} | ||
|
||
func setCell(_ cardName: String, | ||
_ detailCardName: String, | ||
_ userName: String, | ||
_ birth: String, | ||
_ mbti: String, | ||
_ instagramID: String, | ||
_ linkImage: String, | ||
_ linkText: String, | ||
_ linkID: String) { | ||
self.cardNameLabel.text = cardName | ||
self.detailCardNameLabel.text = detailCardName | ||
self.userNameLabel.text = userName | ||
self.birthLabel.text = birth | ||
self.mbtiLabel.text = mbti | ||
self.instagramIDLabel.text = instagramID | ||
if let linkImage = UIImage(named: linkImage) { | ||
self.linkImageView.image = linkImage | ||
} | ||
self.linkTextLabel.text = linkText | ||
self.linkIDLabel.text = linkID | ||
} | ||
} |
Oops, something went wrong.