-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Android/iOS] Fix programmatically open right SwipeItems #10575
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.
Since the initial issue this is based on fixes a bug
Open method should open view and reveal right items.
I tested the same but with TopItems and that did not work either. :(
Can some automated tests be added to check for these?
Xamarin.Forms.Core/SwipeEventArgs.cs
Outdated
@@ -12,14 +12,26 @@ protected BaseSwipeEventArgs(SwipeDirection swipeDirection) | |||
public SwipeDirection SwipeDirection { get; set; } | |||
} | |||
|
|||
public class CloseSwipeEventArgs : EventArgs |
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.
I think these should be named SwipeClosedRequestEventArgs
and SwipeOpenRequestEventArgs
.
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.
Renamed.
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.
Now that I look at this again, we should match the event names with the event arguments names as closely as we can. So now I think it should be CloseRequestedEventArgs
and OpenRequestedEventArgs
.
@PureWeen Added UITests. |
Xamarin.Forms.Core/SwipeEventArgs.cs
Outdated
@@ -12,14 +12,26 @@ protected BaseSwipeEventArgs(SwipeDirection swipeDirection) | |||
public SwipeDirection SwipeDirection { get; set; } | |||
} | |||
|
|||
public class CloseSwipeEventArgs : EventArgs |
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.
Now that I look at this again, we should match the event names with the event arguments names as closely as we can. So now I think it should be CloseRequestedEventArgs
and OpenRequestedEventArgs
.
/azp run |
No pipelines are associated with this pull request. |
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.
UI Tests are failing
@jsuarezruiz tests are failing .. can you review please? |
@rmarinho All the tests are passing now. |
@jsuarezruiz seems its failing on iOS still.. |
Description of Change
Changes:
Issues Resolved
API Changes
Added Animated parameter to
OpenSwipeEventArgs
andCloseSwipeEventArgs
.Now, can programmatically open and close the swipeView, animated or not.
Platforms Affected
Behavioral/Visual Changes
None
Before/After Screenshots
Testing Procedure
PR Checklist