Skip to content

Commit deb4d1f

Browse files
author
Sascha Gordner
committed
Align default closures with default behavior of the delegate methods
1 parent e4ffaaf commit deb4d1f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Sources/RxDataSources/TableViewSectionedDataSource.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ open class TableViewSectionedDataSource<Section: SectionModelType>
3737
configureCell: @escaping ConfigureCell,
3838
titleForHeaderInSection: @escaping TitleForHeaderInSection = { _, _ in nil },
3939
titleForFooterInSection: @escaping TitleForFooterInSection = { _, _ in nil },
40-
canEditRowAtIndexPath: @escaping CanEditRowAtIndexPath = { _, _ in false },
41-
canMoveRowAtIndexPath: @escaping CanMoveRowAtIndexPath = { _, _ in false },
40+
canEditRowAtIndexPath: @escaping CanEditRowAtIndexPath = { _, _ in true },
41+
canMoveRowAtIndexPath: @escaping CanMoveRowAtIndexPath = { _, _ in true },
4242
sectionIndexTitles: @escaping SectionIndexTitles = { _ in nil },
4343
sectionForSectionIndexTitle: @escaping SectionForSectionIndexTitle = { _, _, index in index }
4444
) {
@@ -55,8 +55,8 @@ open class TableViewSectionedDataSource<Section: SectionModelType>
5555
configureCell: @escaping ConfigureCell,
5656
titleForHeaderInSection: @escaping TitleForHeaderInSection = { _, _ in nil },
5757
titleForFooterInSection: @escaping TitleForFooterInSection = { _, _ in nil },
58-
canEditRowAtIndexPath: @escaping CanEditRowAtIndexPath = { _, _ in false },
59-
canMoveRowAtIndexPath: @escaping CanMoveRowAtIndexPath = { _, _ in false }
58+
canEditRowAtIndexPath: @escaping CanEditRowAtIndexPath = { _, _ in true },
59+
canMoveRowAtIndexPath: @escaping CanMoveRowAtIndexPath = { _, _ in true }
6060
) {
6161
self.configureCell = configureCell
6262
self.titleForHeaderInSection = titleForHeaderInSection

0 commit comments

Comments
 (0)