Issue 80 refine table editing controller design#100
Conversation
…e_TableEditingController_design # Conflicts: # Example/Sources/TableViewController.swift # Source/DataSourceProvider.swift # Source/TableEditingController.swift # Tests/DataSourceProviderTests.swift
2. DataSource is passed on commitRow. 3. Passing the TableEditingController closure from the initialiser. 4. Updated Docs and Tests.
| The same applies to collection views that do not have supplementary views. Again, the parameter will be ignored. | ||
| */ | ||
| public init(dataSource: DataSource, cellFactory: CellFactory, supplementaryFactory: SupplementaryFactory) { | ||
| public init(dataSource: DataSource, cellFactory: CellFactory, supplementaryFactory: SupplementaryFactory, tableEditingController: TableEditingController<DataSource>? = nil) { |
There was a problem hiding this comment.
With the current update it is possible for the user to pass the tableEditingController through the initialiser. However I have still left the old implementation with the _tableEditingController for the time being. I was thinking of deprecating the old way (assigning it through the variabletableEditingController) but I wanted your opinion first @jessesquires .
|
Hi @jessesquires , |
|
thanks @psartzetakis ! sorry for the delay 😄 i'll try to get this and #98 merged soon. i've decided to drop the |
|
hey @psartzetakis ! finally merged 🎉 this is great. 😎 I made a couple of minor edits in 14d4df0:
|
|
I'm hoping to get 7.0 release by Monday, Jan 1. 🎉 also cc @dcaunt 😄 |
|
Hey @jessesquires , Awesome news 🎉 |
Pull request checklist
This fixes issue #80
What's in this pull request?
Itemnow is passed on theCanEditRowclosure.dataSourceis now passed on theCommitEditingStyleForRowclosure.tableEditingControllerclosure directly on the initialiser.FetchedResultsController