SwiftUI List Section Index Title
Reading time: 3 min
This recipe shows how to add section index with titles to a SwiftUI List. This will render a vertical list of custom shortcuts on the right-hand side of the list, allowing you to quickly navigate to any section by pressing or just moving your finger over it. The same functionality in UITableView
is implemented with sectionIndexTitles(for:)
and tableView(_:sectionForSectionIndexTitle:at:)
.
SwiftUI Timeline list
Reading time: 2 min
This recipe shows how to implement a timeline list in SwiftUI. Timeline list has a line, usually on the side, that connects rows / cells tied to the same date.
Remove List Separator in SwiftUI (All Versions)
Reading time: 2 min
This recipe shows how to remove / hide list separator in SwiftUI. This is tricky because each SwiftUI version has its own solution.
SwiftUI List with Alternating Row Color
Reading time: 1 min
This recipe shows how to add a SwiftUI List with alternating row colors.
Reading time: 1 min
This recipe shows how to style the progress indicator while using the refreshable
on SwiftUI List
.