Skip to content

Commit 0e2a3e3

Browse files
committed
[BOOK-379] feat: 토끼 리뷰 반영
1 parent c1d4691 commit 0e2a3e3

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,14 @@ final class AppreciationResultView: BaseView {
148148
if let review = appreciation, !review.isEmpty {
149149
appreciationLabel.setText(text: review)
150150
rootStack.spacing = LayoutConstants.rootStackSpacing
151+
if !rootStack.arrangedSubviews.contains(appreciationLabel) {
152+
rootStack.addArrangedSubview(appreciationLabel)
153+
}
151154
} else {
152155
rootStack.spacing = 0
153-
rootStack.removeArrangedSubview(appreciationLabel)
156+
if rootStack.arrangedSubviews.contains(appreciationLabel) {
157+
rootStack.removeArrangedSubview(appreciationLabel)
158+
}
154159
}
155160

156161
rootStack.setNeedsLayout()

0 commit comments

Comments
 (0)