ch4rl3x / RevealSwipe

Compose RevealSwipe
Apache License 2.0
202 stars 11 forks source link

Is there exist any way how to make it enable and disable ? #11

Closed Abdelsattar closed 1 year ago

Abdelsattar commented 1 year ago

Hey,

Many thanks for the code it's really working great.

I have a problem I wanna use it as a wrapper for the item and this item is used with multiple lists so not all of the list will have it, so I was asking if there exists a way of making it enable or disable it.

ch4rl3x commented 1 year ago

Hey. You can enable/disable the swipe with enableSwipe. As an alternative you can set directions = emptySet(). With empyt direction set.

In my opinion, the empty direction set works better.

Abdelsattar commented 1 year ago

Thanks that I wanted to do