SwiftUI List Background Color
Reading time: 1 min
This recipe shows how to change List background color in SwiftUI.
SwiftUI Disable Scroll in ScrollView or List
Reading time: 1 min
This recipe shows how to disable scrolling in a ScrollView or List, while still allowing interactions with its subviews.
SwiftUI Multiple Buttons in List Row
Reading time: 1 min
This quick recipe shows how to enable multiple Buttons in a List row. This is a long standing SwiftUI bug/quirk that fortunately has an easy workaround. Say you've put a few buttons in a List
row.
Custom Separator/Divider in SwiftUI Lists
Reading time: 2 min
This recipe shows how to implement a custom separator/divider in any SwiftUI list feeded by a ForEach
- like VStack
, LazyVStack
, HStack
, LazyHStack
, etc.
Sticky List Header in SwiftUI
Reading time: 1 min
This recipe shows how to add a sticky header to a List in SwiftUI. It also allows for a scrolling part of the header, as well as multiple sticky headers.