ch4rl3x / RevealSwipe

Compose RevealSwipe
Apache License 2.0
202 stars 11 forks source link

fix(*): set revealed content to fill max width #15

Closed CiaranSloanRH closed 5 months ago

CiaranSloanRH commented 5 months ago

Use Case

If you have hidden content that takes up wider than 50% of the container, when swiping open the content is cut off at the 50% point.

Solution

The width of the start and end content is set to either 100% or 50% depending on the swipe directions provided in the state class.