Skip to content

Commit aa85786

Browse files
committed
Simplify pull-to-refresh
1 parent 1220ac5 commit aa85786

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

WooCommerce/Classes/ViewRelated/Bookings/Booking Details/BookingDetailsView.swift

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,16 @@ struct BookingDetailsView: View {
2828
}
2929

3030
var body: some View {
31-
RefreshablePlainList(action: {
32-
print("Refresh triggered")
33-
}) {
31+
ScrollView {
3432
VStack(alignment: .leading, spacing: .zero) {
3533
ForEach(viewModel.sections) { section in
3634
sectionView(with: section)
3735
}
3836
}
3937
}
38+
.refreshable {
39+
print("Refresh triggered")
40+
}
4041
.navigationBarTitleDisplayMode(.inline)
4142
.background(Color(uiColor: .systemGroupedBackground))
4243
}

0 commit comments

Comments
 (0)