iPhone SwiftUI layouts

Explore SwiftUI APIs, components, and modifiers with interactive iPhone previews, Swift code, and Apple documentation. Compare every available orientation, appearance, and design.

List

List Row Spacing

Sets the vertical spacing between two adjacent rows in a List.

Explore List Row Spacing on iPhone in portrait, with SwiftUI code and Apple API documentation.

List {
  Section {
    Text("Foo")
    Text("Bar")
  }
  Text("FooBar")
  Text("FooBar")
}
.listRowSpacing(5)
iOS 15.0+ iPadOS 15.0+ visionOS 1.0+

Every available iPhone screenshot for List Row Spacing.

1 views