Skip to content

Commit 5e7ba2a

Browse files
committed
[fix] #173 Perception Error ์ˆ˜์ • @ShapeKim98
1 parent 89a15d8 commit 5e7ba2a

File tree

1 file changed

+24
-22
lines changed

1 file changed

+24
-22
lines changed

โ€ŽProjects/Feature/FeaturePokit/Sources/PokitLinkEditView.swiftโ€Ž

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -32,28 +32,7 @@ public extension PokitLinkEditView {
3232
PokitCaution(type: .๋ฏธ๋ถ„๋ฅ˜_๋งํฌ์—†์Œ)
3333
Spacer()
3434
} else {
35-
WithPerceptionTracking {
36-
ScrollView {
37-
ForEach(store.list, id: \.id) { item in
38-
let isFirst = item.id == self.store.list.first?.id
39-
let isLast = item.id == self.store.list.last?.id
40-
PokitLinkCard(
41-
link: item,
42-
state: isFirst
43-
? .top
44-
: isLast ? .bottom : .middle,
45-
type: .unCatgorized(isSelected: store.selectedItems.contains(item)),
46-
action: nil,
47-
kebabAction: nil,
48-
fetchMetaData: {},
49-
favoriteAction: nil,
50-
selectAction: { send(.์ฒดํฌ๋ฐ•์Šค_์„ ํƒํ–ˆ์„๋•Œ(item)) }
51-
)
52-
}
53-
}
54-
.scrollIndicators(.hidden)
55-
.padding(.bottom, 38)
56-
}
35+
contentList
5736
}
5837
}
5938
.padding(.top, 16)
@@ -124,6 +103,29 @@ private extension PokitLinkEditView {
124103
.padding(.top, 8)
125104
}
126105

106+
var contentList: some View {
107+
ScrollView {
108+
ForEach(store.list, id: \.id) { item in
109+
let isFirst = item.id == self.store.list.first?.id
110+
let isLast = item.id == self.store.list.last?.id
111+
PokitLinkCard(
112+
link: item,
113+
state: isFirst
114+
? .top
115+
: isLast ? .bottom : .middle,
116+
type: .unCatgorized(isSelected: store.selectedItems.contains(item)),
117+
action: nil,
118+
kebabAction: nil,
119+
fetchMetaData: {},
120+
favoriteAction: nil,
121+
selectAction: { send(.์ฒดํฌ๋ฐ•์Šค_์„ ํƒํ–ˆ์„๋•Œ(item)) }
122+
)
123+
}
124+
}
125+
.scrollIndicators(.hidden)
126+
.padding(.bottom, 38)
127+
}
128+
127129
var actionFloatButtonView: some View {
128130
PokitLinkEditFloatView(
129131
delegateSend: { store.send(.scope(.floatButtonAction($0))) }

0 commit comments

Comments
ย (0)