-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Android/iOS] Swipe to close in SwipeView #9664
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Build errors :(
##[error]Xamarin.Forms.Controls.Issues\Xamarin.Forms.Controls.Issues.Shared\Issue8781.xaml.cs(42,5): Error CS0103: The name 'resultEntry' does not exist in the current context
I think you need to do some #if APP like suggested
Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue8781.xaml.cs
Show resolved
Hide resolved
Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue8781.xaml.cs
Show resolved
Hide resolved
|
In Previous versions the SwipeView was preventing underlying TapGestureRecognizers from working; Is that fixed as well? Or should I open a new issue for that one? |
@jsuarezruiz In the PR and the gif you showed it looks like my issue will be resolved.
Do I have to add the TapGestureRecognizer to the SwipeView or its Content (e.g. StackLayout)? |
…wipeView is fully open)
Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue8781.xaml.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! would it be possible to add some UI Tests? Especially for the swiping back and forth scenarios?
That swipe to reveal and entry with a math question is awesome!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A UI Test is always a good idea! So maybe add that, but this looks good to go so merge at will or add the test and merge then ;)
Thanks for the feedback! I have added more samples and UITests to verify the SwipView opening and closing by doing swipe. |
Description of Change
In this PR we fix several issues related to the swipe gesture in SwipeView:
Issues Resolved
API Changes
None
Platforms Affected
Behavioral/Visual Changes
None
Before/After Screenshots
Before
Realize that to close the SwipeView the tap works but not the swipe. In a similar way, trying to move from the left open SwipeItem to the right one was not possible without previously closing the SwipeView.
After
Android
iOS
Testing Procedure
PR Checklist