In fact, there is no official Apple for Apple. And Apple may reject your application if you do. If you just want to customize the indexBar, then the library below can help you.
You can use Swift's custom CollectionIndexTools library (iOS 8+), which you can customize.
https://github.com/ReverseScale/CollectionIndexTools
Here's an example snippet for CollectionIndexTools
lazy var collectionViewIndex: CollectionViewIndex = { let collectionViewIndex = CollectionViewIndex() collectionViewIndex.indexTitles = ["c", "v", "t", "m", "n", "w", "e", "r", "t", "y", "u", "i", "o", "p", "h", "d", "c", "b", "q"] collectionViewIndex.addTarget(self, action: #selector(FakeCollectionViewController.selectedIndexDidChange(_:)), for: .valueChanged) collectionViewIndex.translatesAutoresizingMaskIntoConstraints = false return collectionViewIndex }()
Tim Jul 13 '17 at 9:52 on 2017-07-13 09:52
source share