diff --git a/CHANGELOG.md b/CHANGELOG.md index 566cf1b3..343c9d30 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,8 @@ All notable changes to this project will be documented in this file. #### Master -* Added support of mutable CellViewModels. +* Adds support of mutable CellViewModels. +* Changes `TableViewSectionedDataSource` default parameters `canEditRowAtIndexPath` and `canMoveRowAtIndexPath` to align with iOS default behavior #383 ## [4.0.1](https://github.com/RxSwiftCommunity/RxDataSources/releases/tag/4.0.1) diff --git a/Sources/RxDataSources/TableViewSectionedDataSource.swift b/Sources/RxDataSources/TableViewSectionedDataSource.swift index 1bd4017b..91f5ddab 100644 --- a/Sources/RxDataSources/TableViewSectionedDataSource.swift +++ b/Sources/RxDataSources/TableViewSectionedDataSource.swift @@ -37,8 +37,8 @@ open class TableViewSectionedDataSource configureCell: @escaping ConfigureCell, titleForHeaderInSection: @escaping TitleForHeaderInSection = { _, _ in nil }, titleForFooterInSection: @escaping TitleForFooterInSection = { _, _ in nil }, - canEditRowAtIndexPath: @escaping CanEditRowAtIndexPath = { _, _ in false }, - canMoveRowAtIndexPath: @escaping CanMoveRowAtIndexPath = { _, _ in false }, + canEditRowAtIndexPath: @escaping CanEditRowAtIndexPath = { _, _ in true }, + canMoveRowAtIndexPath: @escaping CanMoveRowAtIndexPath = { _, _ in true }, sectionIndexTitles: @escaping SectionIndexTitles = { _ in nil }, sectionForSectionIndexTitle: @escaping SectionForSectionIndexTitle = { _, _, index in index } ) { @@ -55,8 +55,8 @@ open class TableViewSectionedDataSource configureCell: @escaping ConfigureCell, titleForHeaderInSection: @escaping TitleForHeaderInSection = { _, _ in nil }, titleForFooterInSection: @escaping TitleForFooterInSection = { _, _ in nil }, - canEditRowAtIndexPath: @escaping CanEditRowAtIndexPath = { _, _ in false }, - canMoveRowAtIndexPath: @escaping CanMoveRowAtIndexPath = { _, _ in false } + canEditRowAtIndexPath: @escaping CanEditRowAtIndexPath = { _, _ in true }, + canMoveRowAtIndexPath: @escaping CanMoveRowAtIndexPath = { _, _ in true } ) { self.configureCell = configureCell self.titleForHeaderInSection = titleForHeaderInSection