List Row Insets

Applies an inset to the rows in a list.

List Row Insets - iOS Light Mode Preview

Platform Compatibility

iOS 13.0+ iPadOS 13.0+ macOS 10.15+ watchOS 6.0+ tvOS 13.0+ visionOS 1.0+

Tags

SwiftUI Code

Docs
List {
  Section {
    Text("All")
  } header: {
    Text("Header")
  }
  .listRowInsets(.all, 0)
  Section {
    Text("Header Only")
  } header: {
    Text("Header")
      .listRowInsets(.all, 0)
  }
  Section {
    Text("Normal")
  } header: {
    Text("Header")
  }
}

Found an issue or have a suggestion?

Created: August 6, 2025Updated: August 6, 2025