-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[Design] #87 - 리뷰 탭 Empty View UI 구현
- Loading branch information
Showing
15 changed files
with
185 additions
and
95 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
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
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
6 changes: 6 additions & 0 deletions
6
HealthFoodMe/HealthFoodMe/Global/Resources/Assets.xcassets/ReviewDetail/Contents.json
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,6 @@ | ||
{ | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
...dMe/Global/Resources/Assets.xcassets/ReviewDetail/img_review_empty.imageset/Contents.json
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,23 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "img_review_empty.png", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "img_review_empty@2x.png", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"filename" : "img_review_empty@3x.png", | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+1.58 KB
...ces/Assets.xcassets/ReviewDetail/img_review_empty.imageset/img_review_empty.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+3 KB
.../Assets.xcassets/ReviewDetail/img_review_empty.imageset/img_review_empty@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.6 KB
.../Assets.xcassets/ReviewDetail/img_review_empty.imageset/img_review_empty@3x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
75 changes: 75 additions & 0 deletions
75
HealthFoodMe/HealthFoodMe/Presentation/Detail/ReviewTabScene/Cells/ReviewEmptyViewCVC.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,75 @@ | ||
// | ||
// ReviewEmptyViewCVC.swift | ||
// HealthFoodMe | ||
// | ||
// Created by 강윤서 on 2022/07/16. | ||
// | ||
|
||
import UIKit | ||
|
||
class ReviewEmptyViewCVC: UICollectionViewCell, UICollectionViewRegisterable { | ||
|
||
// MARK: - Properties | ||
|
||
static var isFromNib = false | ||
|
||
// MARK: - UI Components | ||
private var testLabel: UILabel = { | ||
let lb = UILabel() | ||
lb.text = "SDFSDFSDF" | ||
return lb | ||
}() | ||
|
||
private var reviewEmptyViewImageView: UIImageView = { | ||
let iv = UIImageView() | ||
let image = ImageLiterals.ReviewDetail.reviewEmptyIcon | ||
iv.image = image | ||
return iv | ||
}() | ||
|
||
private var reviewEmptyViewLabel: UILabel = { | ||
let lb = UILabel() | ||
lb.text = I18N.Detail.Review.emptyViewMessage | ||
lb.font = .NotoRegular(size: 14) | ||
return lb | ||
}() | ||
|
||
private var reviewEmptyStackView: UIStackView = { | ||
let st = UIStackView() | ||
st.axis = .vertical | ||
st.spacing = 24 | ||
st.distribution = .equalSpacing | ||
st.alignment = .center | ||
return st | ||
}() | ||
|
||
// MARK: - Life Cycle Part | ||
|
||
override init(frame: CGRect) { | ||
super.init(frame: frame) | ||
setLayout() | ||
|
||
} | ||
|
||
required init?(coder aDecoder: NSCoder) { | ||
fatalError("init(coder:) has not been implemented") | ||
} | ||
|
||
} | ||
|
||
// MARK: - Methods | ||
|
||
extension ReviewEmptyViewCVC { | ||
private func setLayout() { | ||
|
||
let width = UIScreen.main.bounds.width | ||
reviewEmptyStackView.addArrangedSubviews(reviewEmptyViewImageView, | ||
reviewEmptyViewLabel) | ||
contentView.addSubviews(reviewEmptyStackView) | ||
reviewEmptyStackView.snp.makeConstraints { make in | ||
make.centerX.equalToSuperview() | ||
make.top.equalTo(50) | ||
make.width.equalTo(width - 211) | ||
} | ||
} | ||
} |
Oops, something went wrong.