lib/ProMotion/table/table.rb in ProMotion-2.8.1 vs lib/ProMotion/table/table.rb in ProMotion-2.8.2
- old
+ new
@@ -270,10 +270,10 @@
def tableView(table_view, sectionForSectionIndexTitle: title, atIndex: index)
return index unless ["{search}", UITableViewIndexSearch].include?(self.table_data_index[0])
if index == 0
table_view.scrollRectToVisible(CGRectMake(0.0, 0.0, 1.0, 1.0), animated: false)
- NSNotFound
+ -1 # NOTE: returning -1 since NSNotFound has been removed in Mojave/Marzipan
else
index - 1
end
end