Skip to content

Commit 4704c87

Browse files
committed
[BOOK-379] fix: 리뷰 반영
1 parent 0e2a3e3 commit 4704c87

File tree

2 files changed

+7
-17
lines changed

2 files changed

+7
-17
lines changed

src/Projects/BKPresentation/Sources/MainFlow/NoteCompletion/View/AppreciationResultView.swift

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ final class AppreciationResultView: BaseView {
4444
)
4545

4646
private let rootStackBackgroundView = UIView()
47-
private lazy var rootStack: UIStackView = {
47+
private let rootStack: UIStackView = {
4848
let stackView = UIStackView()
4949
stackView.axis = .vertical
5050
stackView.spacing = LayoutConstants.rootStackSpacing
@@ -146,20 +146,13 @@ final class AppreciationResultView: BaseView {
146146
creationLabel.setText(text: creationDate.toKoreanDateString())
147147

148148
if let review = appreciation, !review.isEmpty {
149-
appreciationLabel.setText(text: review)
150-
rootStack.spacing = LayoutConstants.rootStackSpacing
151-
if !rootStack.arrangedSubviews.contains(appreciationLabel) {
152-
rootStack.addArrangedSubview(appreciationLabel)
149+
appreciationLabel.setText(text: review)
150+
appreciationLabel.isHidden = false
151+
rootStack.spacing = LayoutConstants.rootStackSpacing
152+
} else {
153+
appreciationLabel.isHidden = true
154+
rootStack.spacing = 0
153155
}
154-
} else {
155-
rootStack.spacing = 0
156-
if rootStack.arrangedSubviews.contains(appreciationLabel) {
157-
rootStack.removeArrangedSubview(appreciationLabel)
158-
}
159-
}
160-
161-
rootStack.setNeedsLayout()
162-
rootStack.layoutIfNeeded()
163156
}
164157
}
165158

src/Projects/BKPresentation/Sources/MainFlow/NoteEdit/View/NoteEditView.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,10 +251,7 @@ final class NoteEditView: BaseView {
251251

252252
if let review = recordInfo.review {
253253
appreciationTextView.setText(review)
254-
} else {
255-
256254
}
257-
258255
// 감정 라벨은 selectedEmotion 바인딩에서만 설정
259256
}
260257

0 commit comments

Comments
 (0)