Skip to content
This repository was archived by the owner on Apr 15, 2020. It is now read-only.
This repository was archived by the owner on Apr 15, 2020. It is now read-only.

Support additional UITableViewDataSource methods #29

@jessesquires

Description

@jessesquires

The following methods from UITableViewDataSource are currently not supported.

Section index titles

  • - sectionIndexTitlesForTableView:
  • - tableView:sectionForSectionIndexTitle:atIndex:

Editing

Reordering

  • - tableView:canMoveRowAtIndexPath:
  • - tableView:moveRowAtIndexPath:toIndexPath:

Implementation notes

For each of the 3 categories above, there should be separate protocols and structs. Generic parameters for each should include Cell and Item, and the implementations should follow the patterns established by the existing protocol TableViewCellFactoryType and struct TableViewCellFactory.

Section index titles
  1. Create a protocol TableViewSectionIndexingType
  2. Create a struct TableViewSectionIndexingController
Editing
  1. Create a protocol TableViewEditingType
  2. Create a struct TableViewEditingController
Reordering
  1. Create a protocol TableViewReorderingType
  2. Create a struct TableViewReorderingController

Finally, TableViewDataSourceProvider.init should optionally receive each of the above protocols.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions