Container Content Margins
Adds the margins of the container the view is in.
Platform Compatibility
Tags
SwiftUI Code
VStack(spacing: 0) {
Color.blue
Color.indigo
.contentMargins(
for: .container,
edges: .all
)
List {
Text("FooBar")
}
}