I found an error in the reversedIndexPath method if sections are used. I tested this fix for my own application and it works as expected but if you have a better idea I would be interested to hear about it.
The problem is that the number of rows in section was always determined using the section from the given IndexPath and calling the UITableView method numberOfRows(inSection:). However, if I called the methods in my ViewController the reversedIndexPath should have been used.
I found an error in the reversedIndexPath method if sections are used. I tested this fix for my own application and it works as expected but if you have a better idea I would be interested to hear about it. The problem is that the number of rows in section was always determined using the section from the given IndexPath and calling the UITableView method
numberOfRows(inSection:)
. However, if I called the methods in my ViewController the reversedIndexPath should have been used.22