File tree 3 files changed +16
-12
lines changed
3 files changed +16
-12
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ struct HomePDFCell: View {
22
22
23
23
24
24
var body : some View {
25
+ VStack ( spacing: 0 ) {
25
26
Button {
26
27
onTapGesture ( )
27
28
} label: {
@@ -60,6 +61,11 @@ struct HomePDFCell: View {
60
61
. padding ( . top, 10 )
61
62
}
62
63
. frame ( height: 138 )
64
+
65
+ Rectangle ( )
66
+ . foregroundStyle ( . primary3)
67
+ . frame ( height: 1 )
68
+ }
63
69
}
64
70
}
65
71
Original file line number Diff line number Diff line change @@ -86,10 +86,6 @@ private struct HomeSearchListView: View {
86
86
selectedPaper = paperInfo
87
87
deleteAlertPresented. toggle ( )
88
88
}
89
-
90
- Rectangle ( )
91
- . foregroundStyle ( . primary3)
92
- . frame ( height: 1 )
93
89
}
94
90
. padding ( . leading, 30 )
95
91
}
Original file line number Diff line number Diff line change @@ -94,10 +94,10 @@ struct PaperListView: View {
94
94
95
95
Spacer ( )
96
96
} else {
97
- ScrollView {
98
- VStack ( spacing : 0 ) {
99
- Spacer ( ) . frame ( height : 6 )
100
-
97
+ VStack ( spacing : 0 ) {
98
+ Spacer ( ) . frame ( height : 6 )
99
+
100
+ List {
101
101
ForEach ( homeViewModel. filteredLists, id: \. self) { paperInfo in
102
102
// MARK: searchview 들어갈 위치
103
103
HomePDFCell (
@@ -119,13 +119,15 @@ struct PaperListView: View {
119
119
deleteAlertPresented. toggle ( )
120
120
}
121
121
)
122
-
123
- Rectangle ( )
124
- . frame ( height: 1 )
125
- . foregroundStyle ( . primary3)
122
+ . listRowSeparator ( . hidden)
123
+ . listRowBackground ( Color . clear)
124
+ . listRowInsets ( EdgeInsets ( ) )
126
125
}
127
126
. padding ( . leading, 24 )
128
127
}
128
+ . listStyle ( PlainListStyle ( ) )
129
+ . scrollContentBackground ( . hidden)
130
+ . background ( Color . clear)
129
131
}
130
132
}
131
133
}
You can’t perform that action at this time.
0 commit comments