Conversation
Hi All, I had to make new PR for rebase. @samhouts @rmarinho @StephaneDelcroix Thanks. |
@@ -197,13 +210,15 @@ bool StartScrolling(MotionEvent e2) | |||
float totalX = e2.GetX() - _lastX; | |||
float totalY = e2.GetY() - _lastY; | |||
|
|||
return _scrollDelegate(totalX, totalY, e2.PointerCount); | |||
return _scrollDelegate(totalX, totalY, e2.PointerCount) || || _swipeDelegate(totalX, totalY); |
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.
Maybe a merge error? Causing build to fail.
New error! |
@samhouts What's making the iOS10 Validation fail? I'll fix it. |
@seanyda we can ignore that failure, is not related. |
Amazing work! Looking forward to have this on my apps! :D @rmarinho , |
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.
we have some changes on the csproj I think we can avoid
@@ -43,67 +43,7 @@ | |||
<Compile Update="GalleryPages\VisualStateManagerGalleries\OnPlatformExample.xaml.cs"> | |||
<DependentUpon>OnPlatformExample.xaml</DependentUpon> | |||
</Compile> | |||
<EmbeddedResource Update="GalleryPages\VisualStateManagerGalleries\ButtonDisabledStatesGallery.xaml"> |
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.
Why are we dropping these files?
@@ -207,7 +208,7 @@ | |||
<Name>Xamarin.Forms.Maps</Name> | |||
</ProjectReference> | |||
<ProjectReference Include="..\Xamarin.Forms.Platform\Xamarin.Forms.Platform.csproj"> | |||
<Project>{67f9d3a8-f71e-4428-913f-c37ae82cdb24}</Project> | |||
<Project>{D31A6537-ED9C-4EBD-B231-A8D4FE44126A}</Project> |
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.
not sure we need this
@@ -111,6 +112,15 @@ | |||
<Reference Include="Xamarin.Android.Support.v7.MediaRouter"> | |||
<HintPath>..\packages\Xamarin.Android.Support.v7.MediaRouter.25.4.0.2\lib\MonoAndroid70\Xamarin.Android.Support.v7.MediaRouter.dll</HintPath> | |||
</Reference> | |||
<Reference Include="Xamarin.GooglePlayServices.Base"> |
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.
not sure we need to add this
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.
sorry a couple of small changes to make the pr cleaner. Also do you think is possible to add a UITest ? it will make us more confidant that this Works in the future.
Thanks
@@ -250,6 +252,10 @@ | |||
<AndroidResource Include="Resources\drawable\cover1.jpg" /> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<ProjectReference Include="..\PagesGallery\PagesGallery.Droid\PagesGallery.Droid.csproj"> |
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.
why do we have this reference ? please try to add the changes needed , it's hard because the IDE plays tricks on you
@@ -346,6 +352,9 @@ | |||
<ItemGroup> | |||
<AndroidResource Include="Resources\drawable\red_button.xml" /> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<AndroidAsset Include="Assets\test.jpg" /> |
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.
this asset is also not needed i think
@@ -1,4 +1,4 @@ | |||
<Project Sdk="Microsoft.NET.Sdk"> | |||
<Project Sdk="Microsoft.NET.Sdk"> |
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.
no changes here, please try cleanup and not submit this file
@@ -1,4 +1,4 @@ | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<?xml version="1.0" encoding="utf-8"?> |
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.
same, no changes, don't submit this file.
@@ -1,4 +1,4 @@ | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<?xml version="1.0" encoding="utf-8"?> |
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.
no changes, don't submit
@@ -1,4 +1,4 @@ | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<?xml version="1.0" encoding="utf-8"?> |
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.
same as above
@@ -129,7 +129,8 @@ GestureDetector InitializeTapAndPanDetector() | |||
|
|||
return new List<GestureElement>(); | |||
}), | |||
new PanGestureHandler(() => View, context.FromPixels)); | |||
new PanGestureHandler(() => View, context.FromPixels), | |||
new SwipeGestureHandler(() => View, context.FromPixels)); |
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.
missing space, not important
@seanyda Congrats! This finally made it into XF 3.2.0. 👍 |
thnx for this update, i love xamarin |
Awesome addition @seanyda! 👍 |
We love you so much! |
Description of Change
Added a SwipeGestureRecognizer to Xamarin.Forms which works on iOS, Android, Windows and Tizen.
API Changes
Xamarin.Forms.Core
Xamarin.Forms.Platform.iOS
Xamarin.Forms.Platform.Android
Xamarin.Forms.Platform.UAP
Xamarin.Forms.Platform.Tizen
Testing
PR Checklist
Previous PR: #1330