Skip to content

Commit 382a4df

Browse files
committed
hotfix - 링딩동 문제 해결
1 parent 02ad082 commit 382a4df

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

Spoony-iOS/Spoony-iOS/Source/Feature/Detail/DetailView/DetailView.swift

+11-9
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,10 @@ struct DetailView: View {
6565
.onAppear {
6666
store.send(intent: .getInitialValue(userId: Config.userId, postId: postId))
6767

68-
print("1️⃣ \(store.state.successService)")
69-
// 상태 확인 후 네비게이션 처리
7068
if !store.state.successService {
7169
navigationManager.pop(1)
7270
}
7371

74-
print("2️⃣ \(store.state.successService)")
7572
}
7673
.onChange(of: store.state.toast) { _, newValue in
7774
toastMessage = newValue
@@ -182,7 +179,7 @@ extension DetailView {
182179
chip: store.state.categoryColorResponse.toEntity()
183180
)
184181

185-
Text(store.state.title.splitZeroWidthSpace())
182+
Text(store.state.title)
186183
.customFont(.title1b)
187184
.foregroundStyle(.black)
188185

@@ -193,9 +190,16 @@ extension DetailView {
193190
Spacer()
194191
.frame(height: 16.adjustedH)
195192

196-
Text(store.state.description.splitZeroWidthSpace())
197-
.customFont(.body2m)
198-
.foregroundStyle(.gray900)
193+
Text(
194+
(store.state.isScoop || store.state.isMine)
195+
? store.state.description.splitZeroWidthSpace()
196+
: (store.state.description.count > 120
197+
? "\(store.state.description.prefix(120))...".splitZeroWidthSpace()
198+
: store.state.description.splitZeroWidthSpace())
199+
)
200+
.customFont(.body2m)
201+
.frame(width: 335.adjusted)
202+
.foregroundStyle(.black)
199203

200204
}
201205
.padding(EdgeInsets(top: 0, leading: 20.adjusted, bottom: 32.adjustedH, trailing: 20.adjusted))
@@ -377,5 +381,3 @@ struct Line: Shape {
377381
return path
378382
}
379383
}
380-
381-
//

0 commit comments

Comments
 (0)