I have a background image in a ZStack where a List is in front of it. Now the list view is overlapping with a white background the image but I want it transparent.
ZStack {
Image("background")
.resizable()
.ignoresSafeArea()
.scaledToFill()
VStack {
List {
ForEach(challenges) { challenge in
HStack {
VStack {
Text(challenge.name ?? "")
.font(.title)
}
}
}
}
}
}