Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[Bug] Threshold property only works for the first swipe item and will hide other items. #13619

Open
yuyully opened this issue Feb 2, 2021 · 2 comments
Labels
a/swipeview e/4 🕓 4 in-progress This issue has an associated pull request that may resolve it! p/Android p/iOS 🍎 t/bug 🐛

Comments

@yuyully
Copy link

yuyully commented Feb 2, 2021

Description

I'm trying to use Threshold property while adding more than one swipe items, however it doesn't work. Threshold property only works for the first swipe item.

Steps to Reproduce

  1. Create a Mobile App (Xamarin.Forms) - Flyout project > Update Xamarin.Forms package to latest 5.0
  2. Open AboutPage.xaml, then add the following code
<SwipeView Threshold="200">
    <SwipeView.LeftItems>
        <SwipeItems>
            <SwipeItem Text="Favorite" BackgroundColor="LightGreen" />
            <SwipeItem Text="Delete" BackgroundColor="LightPink"/>
        </SwipeItems>
    </SwipeView.LeftItems>
    <Grid HeightRequest="60" WidthRequest="300" BackgroundColor="LightGray">
        <Label Text="Swipe right" HorizontalOptions="Center" VerticalOptions="Center" />
    </Grid>
</SwipeView>
  1. Debugging with android project

Expected Behavior

There should be two SwipeItem showing with Threshold="200".

Actual Behavior

There is only the first item showing up and the second one is missing. If I delete Threshold property, items work fine.

@yuyully yuyully added s/unverified New report that has yet to be verified t/bug 🐛 labels Feb 2, 2021
@rachelkang
Copy link
Contributor

Hi, @v-yuyul - thanks for submitting this issue! I'm able to see the behavior you shared on both Android and iOS Issue13619.zip

@jsuarezruiz do you have any ideas?

@rachelkang rachelkang added a/swipeview p/Android p/iOS 🍎 e/4 🕓 4 and removed s/unverified New report that has yet to be verified labels Feb 3, 2021
@jsuarezruiz jsuarezruiz added the in-progress This issue has an associated pull request that may resolve it! label Feb 4, 2021
@jsuarezruiz
Copy link
Contributor

@v-yuyul, @rachelkang Thanks for the feedback, the issue will be fixed by #13651

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
a/swipeview e/4 🕓 4 in-progress This issue has an associated pull request that may resolve it! p/Android p/iOS 🍎 t/bug 🐛
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants