@@ -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