@@ -412,6 +412,8 @@ extension UITableView.ReverseExtension: UITableViewDelegate {
412412 cell. contentView. transform = CGAffineTransform . identity. rotated ( by: . pi)
413413 UIView . setAnimationsEnabled ( true )
414414 }
415+
416+ delegate? . tableView ? ( tableView, willDisplay: cell, forRowAt: reversedIndexPath ( with: indexPath) )
415417 }
416418
417419 public func tableView( _ tableView: UITableView , willDisplayHeaderView view: UIView , forSection section: Int ) {
@@ -420,6 +422,8 @@ extension UITableView.ReverseExtension: UITableViewDelegate {
420422 view. transform = CGAffineTransform . identity. rotated ( by: . pi)
421423 UIView . setAnimationsEnabled ( true )
422424 }
425+
426+ delegate? . tableView ? ( tableView, willDisplayHeaderView: view, forSection: reversedSection ( with: section) )
423427 }
424428
425429 public func tableView( _ tableView: UITableView , willDisplayFooterView view: UIView , forSection section: Int ) {
@@ -428,6 +432,30 @@ extension UITableView.ReverseExtension: UITableViewDelegate {
428432 view. transform = CGAffineTransform . identity. rotated ( by: . pi)
429433 UIView . setAnimationsEnabled ( true )
430434 }
435+
436+ delegate? . tableView ? ( tableView, willDisplayFooterView: view, forSection: reversedSection ( with: section) )
437+ }
438+
439+ public func tableView( _ tableView: UITableView , heightForHeaderInSection section: Int ) -> CGFloat {
440+ delegate? . tableView ? ( tableView, heightForHeaderInSection: reversedSection ( with: section) ) ?? . leastNonzeroMagnitude
441+ }
442+
443+ public func tableView( _ tableView: UITableView , heightForFooterInSection section: Int ) -> CGFloat {
444+ delegate? . tableView ? ( tableView, heightForFooterInSection: reversedSection ( with: section) ) ?? . leastNonzeroMagnitude
445+ }
446+
447+ public func tableView( _ tableView: UITableView , editingStyleForRowAt indexPath: IndexPath ) -> UITableViewCell . EditingStyle {
448+ delegate? . tableView ? ( tableView, editingStyleForRowAt: indexPath) ?? . delete
449+ }
450+
451+ @available ( iOS 11 . 0 , * )
452+ public func tableView( _ tableView: UITableView , trailingSwipeActionsConfigurationForRowAt indexPath: IndexPath ) -> UISwipeActionsConfiguration ? {
453+ delegate? . tableView ? ( tableView, trailingSwipeActionsConfigurationForRowAt: indexPath)
454+ }
455+
456+ @available ( iOS 11 . 0 , * )
457+ public func tableView( _ tableView: UITableView , leadingSwipeActionsConfigurationForRowAt indexPath: IndexPath ) -> UISwipeActionsConfiguration ? {
458+ delegate? . tableView ? ( tableView, leadingSwipeActionsConfigurationForRowAt: indexPath)
431459 }
432460}
433461
@@ -456,7 +484,19 @@ extension UITableView.ReverseExtension: UITableViewDataSource {
456484 public func tableView( _ tableView: UITableView , titleForFooterInSection section: Int ) -> String ? {
457485 return dataSource? . tableView ? ( tableView, titleForHeaderInSection: reversedSection ( with: section) )
458486 }
459-
487+
488+ public func tableView( _ tableView: UITableView , viewForHeaderInSection section: Int ) -> UIView ? {
489+ return delegate? . tableView ? ( tableView, viewForHeaderInSection: reversedSection ( with: section) )
490+ }
491+
492+ public func tableView( _ tableView: UITableView , viewForFooterInSection section: Int ) -> UIView ? {
493+ return delegate? . tableView ? ( tableView, viewForFooterInSection: reversedSection ( with: section) )
494+ }
495+
496+ public func tableView( _ tableView: UITableView , didSelectRowAt indexPath: IndexPath ) {
497+ delegate? . tableView ? ( tableView, didSelectRowAt: reversedIndexPath ( with: indexPath) )
498+ }
499+
460500 // Editing
461501
462502 // Individual rows can opt out of having the -editing property set for them. If not implemented, all rows are assumed to be editable.
0 commit comments