Skip to content

Commit cc61760

Browse files
committed
[design] #167 컨텐츠 상세 디자인 수정
1 parent 6744ed6 commit cc61760

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

Projects/Feature/FeatureContentDetail/Sources/ContentDetail/ContentDetailView.swift

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@ public extension ContentDetailView {
3434
VStack(spacing: 0) {
3535
contentMemo
3636

37-
Divider()
37+
Rectangle()
3838
.foregroundStyle(.pokit(.border(.tertiary)))
39+
.frame(height: 1)
3940

4041
bottomList(favorites: favorites)
4142
}
@@ -56,8 +57,6 @@ public extension ContentDetailView {
5657
PokitLinkPopup(type: $store.linkPopup)
5758
}
5859
}
59-
// .dismissKeyboard(focused: $isFocused)
60-
// .onChange(of: isFocused) { send(.메모포커스_변경되었을때($0)) }
6160
.sheet(isPresented: $store.showAlert) {
6261
PokitAlert(
6362
"링크를 정말 삭제하시겠습니까?",
@@ -110,15 +109,15 @@ private extension ContentDetailView {
110109
func title(content: BaseContentDetail) -> some View {
111110
VStack(alignment: .leading, spacing: 8) {
112111
Group {
113-
remindAndBadge(content: content)
114-
115112
Text(content.title)
116113
.pokitFont(.title3)
117114
.foregroundStyle(.pokit(.text(.primary)))
118115
.multilineTextAlignment(.leading)
119116
.lineLimit(2)
120117

121118
HStack {
119+
remindAndBadge(content: content)
120+
122121
Spacer()
123122

124123
Text(content.createdAt)
@@ -128,8 +127,9 @@ private extension ContentDetailView {
128127
}
129128
.padding(.horizontal, 20)
130129

131-
Divider()
130+
Rectangle()
132131
.foregroundStyle(.pokit(.border(.tertiary)))
132+
.frame(height: 1)
133133
.padding(.top, 4)
134134
}
135135
}
@@ -221,7 +221,8 @@ private extension ContentDetailView {
221221
title: "삭제하기",
222222
type: .bottomSheet(
223223
icon: .icon(.trash),
224-
iconColor: .pokit(.icon(.primary))
224+
iconColor: .pokit(.icon(.primary)),
225+
isLast: true
225226
),
226227
action: { send(.삭제_버튼_눌렀을때) }
227228
)

0 commit comments

Comments
 (0)