FEDUSS
03/31/2024, 10:24 PMFEDUSS
03/31/2024, 10:27 PMAnkit
04/01/2024, 6:06 AMNone
.
You are right, when resetting the state to Covered
(back to the non-swiped state), ideally the lastActionType
should also be reset to None
to denote that the SwipeToReveal
has been reset.
If you feel the documentation or the API was not clear enough for this, please feel free to file a bug. The API is still experimental and feedback of this sort can definitely help us improve it and make it stable.FEDUSS
04/01/2024, 9:28 AMAnkit
04/01/2024, 10:16 AMSo, i have to manually set the state to Covered and the last action to None to "fix" this issue (see the second screenshot for the logs).Yes, this seems kind of expected. When you swipe, the state goes to
Revealed
. This seems to be the an implementation detail about the lastActionType
being set to PrimaryAction
(this is when you use the material version of SwipeToReveal
, which is the recommended one).
It seems to me that we lack in documentation where we don't explicitly mention about the expectations. Please feel free to file a bug and we can discuss in more details. For now, I would suggest its safe to assume that every time some full swipes, you need to reset the lastActionType
when you reset the state back to Covered
.FEDUSS
04/01/2024, 10:52 AMFEDUSS
04/01/2024, 11:19 AMFEDUSS
04/01/2024, 5:17 PM