My listView is simple
struct ListView: View {
var body: some View {
NavigationView {
List(myList) { element in
NavigationLink(destination: NextView()) {
Text(element.name)
}
}
}
}
}
Thought I could set a background Image for the whole View with
.background(Image("ImageName"))
modifier. But the lists background is still white.
I don't want to set an image for each row only once for the whole view.
Can anyone help?