Skip to content

Commit 4fc7a6e

Browse files
committed
Fix separator on top of list
1 parent 07b8775 commit 4fc7a6e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

WooCommerce/Classes/Bookings/BookingList/BookingListView.swift

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,9 @@ private extension BookingListView {
109109
Section {
110110
ForEach(bookings) { item in
111111
bookingItem(item)
112+
.if(item == bookings.first) {
113+
$0.listSectionSeparator(.hidden, edges: .top)
114+
}
112115
.tag(item)
113116
}
114117

@@ -131,11 +134,9 @@ private extension BookingListView {
131134
$0.listStyle(.plain)
132135
} else {
133136
$0.listStyle(.grouped)
137+
.scrollContentBackground(.hidden)
134138
}
135139
}
136-
.listStyle(.grouped)
137-
.scrollContentBackground(.hidden)
138-
.listSectionSeparator(.hidden, edges: .top)
139140
.background(Color(.listBackground))
140141
.refreshable {
141142
await onRefresh()

0 commit comments

Comments
 (0)