File tree Expand file tree Collapse file tree 2 files changed +7
-17
lines changed
src/Projects/BKPresentation/Sources/MainFlow Expand file tree Collapse file tree 2 files changed +7
-17
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments