I would like to know how I can filter my list and create an alphabetical section index to the side of a List in SwiftUI, as is possible with the sectionIndexTitlesForTableView UITableViewDataSource delegate method in UIKit.
Here is an example of what I would like to do
How can I do this?
Here is the list I have so far: List built so far
UITableViewor aUICollectionView. Learning how to construct a view controller with a table view in it should be your starting point, not sorting an array alphanumerically.