Places a custom background view behind a list row item.
- iOS 13.0+
- macOS 10.15+
- Mac Catalyst 13.0+
- tvOS 13.0+
- watchOS 6.0+
- Xcode 11.0+
Viewto use as the background behind the list row view.
A list row view with
view as its background view.
list to place a custom background view behind a list row item.
In the example below, the
Flavor enumeration provides content for list items. The SwiftUI
List builder iterates over the
Flavor enumeration and extracts the raw value of each of its elements using the resulting text to create each list row item. After the list builder finishes, the
list modifier places the view you supply behind each of the list row items.