Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable UITableViewCell edit mode with rxswift

I bind my dataSource to tableview using rxswift, but by default cells are editable when I am doing like that, how can I disable that functionality?

Here the example of tableview what I got:

here the example of tableview what I got

like image 800
Petros Davtyan Avatar asked Jan 20 '26 10:01

Petros Davtyan


1 Answers

Are you using RxDataSources? you can configure you're dataSource as followed

dataSource.canEditRowAtIndexPath = {dataSource, indexPath in false }
like image 99
Luca Gobbo Avatar answered Jan 23 '26 02:01

Luca Gobbo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!