Skip to content

Commit 3624101

Browse files
committed
[#198] reviewTextView -> label로 변경
1 parent 866bcb4 commit 3624101

File tree

1 file changed

+10
-15
lines changed

1 file changed

+10
-15
lines changed

EATSSU/App/Sources/Presentation/Review/MainReviewView/ReviewListTableViewCell.swift

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,12 @@ final class ReviewListTableViewCell: BaseTableViewCell {
6464
return button
6565
}()
6666

67-
var reviewTextView: UITextView = {
68-
let textView = UITextView()
69-
textView.textColor = UIColor.black
70-
textView.isEditable = false
71-
textView.isScrollEnabled = false
72-
textView.backgroundColor = .systemBackground
73-
textView.font = .body1
74-
textView.text = "여기 계란국 맛집임... 김치볶음밥에 계란후라이 없어서 아쉽 다음에 또 먹어야지"
75-
return textView
67+
var reviewTextLabel: UILabel = {
68+
let label = UILabel()
69+
label.font = EATSSUDesignFontFamily.Pretendard.regular.font(size: 14)
70+
label.text = "여기 계란국 맛집임... 김치볶음밥에 계란후라이 없어서 아쉽 다음에 또 먹어야지dddddfdfdfdfdfdfddfdfdfddfdfdfdfddfddfdfd여기 계란국 맛집임... 김치볶음밥에 계란후라이 없어서 아쉽 다음에 또 먹어야지dddddfdfdfdfdfdfddfdfdfddfdfdfdfddfddfdfd"
71+
label.numberOfLines = 0
72+
return label
7673
}()
7774

7875
var foodImageView: UIImageView = {
@@ -118,7 +115,7 @@ final class ReviewListTableViewCell: BaseTableViewCell {
118115
}()
119116

120117
lazy var contentStackView: UIStackView = {
121-
let stackView = UIStackView(arrangedSubviews: [reviewTextView, foodImageView])
118+
let stackView = UIStackView(arrangedSubviews: [reviewTextLabel, foodImageView])
122119
stackView.axis = .vertical
123120
stackView.spacing = 8.adjusted
124121
stackView.alignment = .leading
@@ -155,8 +152,8 @@ final class ReviewListTableViewCell: BaseTableViewCell {
155152
setCollectionView()
156153
contentView.addSubviews(profileStackView,
157154
dateReportStackView,
158-
contentStackView,
159-
collectionView)
155+
collectionView,
156+
contentStackView)
160157
}
161158

162159
override func setLayout() {
@@ -173,9 +170,7 @@ final class ReviewListTableViewCell: BaseTableViewCell {
173170

174171
contentStackView.snp.makeConstraints { make in
175172
make.top.equalTo(collectionView.snp.bottom)
176-
make.leading.equalToSuperview().offset(16)
177-
make.bottom.equalToSuperview().offset(-15)
178-
make.trailing.equalToSuperview().offset(-16)
173+
make.horizontalEdges.bottom.equalToSuperview()
179174
}
180175

181176
foodImageView.snp.makeConstraints { make in

0 commit comments

Comments
 (0)