Created
June 26, 2025 18:04
-
-
Save ajbonner/4026e007d1a99f8342200e0ef936b19d to your computer and use it in GitHub Desktop.
SwiftUI Plain Zero Padding/Margin Separator Inset List View
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
List(items, id: \.0) { | |
ResultsSectionView(item: item) | |
.listRowSpacing(0) | |
.listRowInsets(EdgeInsets()) | |
.listRowSeparator(.hidden) | |
} | |
.listStyle(.inset) | |
.listSectionSpacing(0) | |
.scrollIndicators(.hidden) | |
.contentMargins(.top, 0, for: .scrollContent) | |
.navigationDestination(item: $selectedItem) { item in | |
DetailView(item: item) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment