I had using Xamarin Form to custom my page with custom Renderer .
And custom Touch with Touch Effect: https://docs.microsoft.com/en-us/xamarin/xamarin-forms/app-fundamentals/effects/touch-tracking
<Grid.Effects>
<tt:TouchEffect Capture="True" TouchAction="OnTouchEffectAction"/>
</Grid.Effects>
<skia:SKCanvasView x:Name="myViewDraw" PaintSurface="DrawMyViewView_PaintSurface" BackgroundColor="Transparent"/>
<ContentView x:Name="myCustom" x:FieldModifier="public" HorizontalOptions="Center" VerticalOptions="CenterAndExpand">
<ext:myShareCustomCanvas x:Name="myShareCustomCanvas" HorizontalOptions="Fill" VerticalOptions="Fill"/>
</ContentView>
<Grid.Effects>
When I enable my custom Render Native iOS. TouchBegan,Move, End just fire once on Native View. And after event touch always fire from Touch Effect without fire Event on Native View myCustom. I try detect something but seem Touch Effect always top of MainPage. Hit events method in UIView Custom still received events from my Native Custom UIView.
public override UIView HitTest(CGPoint point, UIEvent uievent)
{
return base.HitTest(point, uievent);
}
But event overwrites Touch still no trigger in UIView:
public override void TouchesBegan(NSSet touches, UIEvent evt)
{
base.TouchesBegan(touches, evt);
foreach (UITouch touch in touches.Cast<UITouch>())
{
long id = touch.Handle.ToInt64();
//Do something
}
}