Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,14 @@ touch.View is MPVolumeView ||
bool IsSwipeView(UIView view)
{
if (view == null)
{
return false;
}

// TODO MAUI
//if (view is SwipeView)
//return true;
if (view is MauiSwipeView)
{
return true;
}

return IsSwipeView(view.Superview);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#if TEST_FAILS_ON_IOS && TEST_FAILS_ON_CATALYST && TEST_FAILS_ON_WINDOWS
// On iOS, SwipeView items conflict with Shell menu swipe in from left, Issue: https://github.com/dotnet/maui/issues/26933
#if TEST_FAILS_ON_CATALYST && TEST_FAILS_ON_WINDOWS
// On Catalyst, Swipe actions not supported in Appium.
// On Windows, StackLayout AutomationId not works in Automation.
using NUnit.Framework;
Expand Down Expand Up @@ -32,11 +31,11 @@ public void Issue9088SwipeViewConfictWithShellMenuSwipeInFromLeft()
App.SwipeRightToLeft(SwipeViewId, 0.67, 250);
Assert.That(App.WaitForElement(LeftCountLabelId).GetText(), Is.EqualTo("2"));

App.SwipeRightToLeft(SwipeViewId, 0.67, 100);
App.SwipeRightToLeft(SwipeViewId, 0.67, 200);
Assert.That(App.WaitForElement(LeftCountLabelId).GetText(), Is.EqualTo("3"));


App.SwipeLeftToRight(SwipeViewId, 0.67, 100);
App.SwipeLeftToRight(SwipeViewId, 0.67, 200);
Assert.That(App.WaitForElement(RightCountLabelId).GetText(), Is.EqualTo("1"));

App.SwipeLeftToRight(SwipeViewId, 0.67, 250);
Expand Down