From b779e92ef6cd33f5ad79181f53df7597696914e1 Mon Sep 17 00:00:00 2001 From: mlch911 Date: Sat, 14 Sep 2024 15:29:04 +0800 Subject: [PATCH] Fix: iOS App on Mac can move TableViewCell by default --- Sources/RxDataSources/TableViewSectionedDataSource.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/RxDataSources/TableViewSectionedDataSource.swift b/Sources/RxDataSources/TableViewSectionedDataSource.swift index 0ba1558..daf48e6 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 true }, - canMoveRowAtIndexPath: @escaping CanMoveRowAtIndexPath = { _, _ in true }, + canEditRowAtIndexPath: @escaping CanEditRowAtIndexPath = { _, _ in false }, + canMoveRowAtIndexPath: @escaping CanMoveRowAtIndexPath = { _, _ in false }, sectionIndexTitles: @escaping SectionIndexTitles = { _ in nil }, sectionForSectionIndexTitle: @escaping SectionForSectionIndexTitle = { _, _, index in index } ) {