Skip to content

Commit 32a2cc3

Browse files
committed
Adjust plain list content rendering
1 parent 52b18e3 commit 32a2cc3

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

RELEASE_NOTES.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ SwiftUIKit makes its best effort to honor semver, but breaking changes can occur
44

55

66

7+
## 5.9.2
8+
9+
This version improves the list header and footer rendering.
10+
11+
12+
713
## 5.9.1
814

915
This version improves the plain list content capabilities of the SDK.

Sources/SwiftUIKit/Lists/PlainListContent.swift

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,12 @@ private struct PlainListContent<Content: View>: View {
2121
private let content: (() -> Content)
2222

2323
public var body: some View {
24-
content()
25-
.frame(maxWidth: .infinity)
26-
.listRowBackground(Color.clear)
27-
.prefersListRowSeparatorHidden()
24+
VStack {
25+
content()
26+
}
27+
.frame(maxWidth: .infinity)
28+
.listRowBackground(Color.clear)
29+
.prefersListRowSeparatorHidden()
2830
}
2931
}
3032

0 commit comments

Comments
 (0)