Skip to content

Commit b779e92

Browse files
committed
Fix: iOS App on Mac can move TableViewCell by default
1 parent bbfea38 commit b779e92

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/RxDataSources/TableViewSectionedDataSource.swift

+2-2
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 true },
41-
canMoveRowAtIndexPath: @escaping CanMoveRowAtIndexPath = { _, _ in true },
40+
canEditRowAtIndexPath: @escaping CanEditRowAtIndexPath = { _, _ in false },
41+
canMoveRowAtIndexPath: @escaping CanMoveRowAtIndexPath = { _, _ in false },
4242
sectionIndexTitles: @escaping SectionIndexTitles = { _ in nil },
4343
sectionForSectionIndexTitle: @escaping SectionForSectionIndexTitle = { _, _, index in index }
4444
) {

0 commit comments

Comments
 (0)