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.

Refine TableEditingController design #80

@jessesquires

Description

@jessesquires

We added TableEditingController in #67.

There's one awkward thing about the design:

You have to capture the dataSource in the commitEditing closure, as seen here in the example. This also makes it awkward to test. There's a kind of "chicken and egg" problem.

Suggested solution:

Maybe we pass DataSourceProtocol back in this closure? I think that would work.

This would then require moving the remove(at:) methods from the DataSource to the DataSourceProtocol. And we would need to figure out a solution for FetchedResultsController here — probably the hardest part.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions