RevealSwipe icon indicating copy to clipboard operation
RevealSwipe copied to clipboard

Reveal size

Open nicola73 opened this issue 3 years ago • 2 comments

Hello, congratulations for the excellent work. Would it be possible to make sure that the uncovered area after the swipe is automatically calculated dinamically based on the revealed part size, both left and right? Currently i use "maxRevealDp = x.dp" but a fixed size doesn't fit all situations. Thank you.

nicola73 avatar Jan 03 '22 21:01 nicola73

Hey. What exactly do you mean? Without a fixed size, there will no swipe limit right? Which situation do you mean?

ch4rl3x avatar Jan 03 '22 22:01 ch4rl3x

The revealed width must coincide with the width of the controls positioned under automatically. If you set a fixed reveal size, with maxRevealDp, it may not be adequate for the swipe controls on the back. I must set a larger maxRevealDp to ensure the underneath visibility:

Screenshot_20220104_090545

instead the length should be automatic:

Screenshot_20220104_090716

nicola73 avatar Jan 04 '22 08:01 nicola73