mindz-eye / MYTableViewIndex

A pixel perfect replacement for UITableView section index, written in Swift
MIT License
523 stars 52 forks source link

Take less horizontal space #17

Closed tamoyal closed 6 years ago

tamoyal commented 6 years ago

This is a bit of a nit pick but in my case it had serious implications. In order to tap outside of the section index to hit a table view row, you have to tap pretty far to the left. You can compare this to the native Contacts app to see the difference. For example, it interferes with the X in the screen shotted view. I tried to handle this through the indexInset property but that did not work. img_4799

tamoyal commented 6 years ago

i was able to solve this by using the TableViewIndex component directly and doing the measurements myself

mindz-eye commented 6 years ago

It is possible to assign a closure to TableViewIndexController, which allows to layout TableViewIndex as you want. See layouter property for details.