Skip to content

Commit fa782dd

Browse files
committed
WIP
1 parent 231c004 commit fa782dd

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

Examples/Showcase/Showcase/List.swift

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,15 @@ struct ListShowcase: View {
2929
Text("Item 2")
3030
}
3131
.modifier { list in
32-
if #available(iOS 16, *) {
32+
if #available(iOS 16, macOS 13, *) {
3333
list.background {
3434
if receiverListFound {
35-
Color(uiColor: .cyan)
35+
Color(.cyan)
3636
}
3737
}
38+
#if !os(tvOS)
3839
.scrollContentBackground(.hidden)
40+
#endif
3941
} else {
4042
list
4143
}
@@ -87,13 +89,15 @@ struct ListShowcase: View {
8789
#endif
8890
}
8991
.modifier { list in
90-
if #available(iOS 16, *) {
92+
if #available(iOS 16, macOS 13, *) {
9193
list.background {
9294
if ancestorListFound {
93-
Color(uiColor: .cyan)
95+
Color(.cyan)
9496
}
9597
}
98+
#if !os(tvOS)
9699
.scrollContentBackground(.hidden)
100+
#endif
97101
} else {
98102
list
99103
}

0 commit comments

Comments
 (0)