I was having the issue that there is a vertical space in the LazyVGrid
in SwiftUI. It turns out there's a extra parameter I was missing in GridItem
's initialiser for spacing. So using GridItem(.flexible(), spacing: 0)
removes the vertical spacing between the columns as shown below.
-
Notifications
You must be signed in to change notification settings - Fork 0
danielctull-playground/SwiftUI-LazyVGrid-Spacing
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Working out how to remove the vertical spacing between columns in a LazyVGrid in SwiftUI.