Skip to content

Commit 6c587d5

Browse files
Merge pull request #316 from syncfusion/TabViewwithDrawingView
Resolved the TabView DrawingView issues in MAC and IOS.
2 parents b4cb6cd + b49cc1a commit 6c587d5

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

maui/src/TabView/Control/HorizontalContent/SfHorizontalContent.iOS.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using UIKit;
55
using Syncfusion.Maui.Toolkit.Platform;
66
using Syncfusion.Maui.Toolkit.TextInputLayout;
7+
using Microsoft.Maui.Graphics;
78

89
namespace Syncfusion.Maui.Toolkit.TabView
910
{
@@ -75,6 +76,18 @@ void ITapGestureListener.ShouldHandleTap(object view)
7576
var touchLocation = uiTouch.LocationInView(uiTouch.View?.Superview);
7677
var textInputView = FindSfTextInputLayout(uiTouch.View?.Superview);
7778
this._canProcessTouch = true;
79+
80+
var touchViewType = touchView?.GetType();
81+
if (touchViewType is not null)
82+
{
83+
var hasDrawAction = touchViewType.GetProperties().Any(p => p.PropertyType == typeof(Action<ICanvas, RectF>));
84+
if (hasDrawAction)
85+
{
86+
this._canProcessTouch = false;
87+
return;
88+
}
89+
}
90+
7891
if (textInputView != null)
7992
{
8093
if (uiTouch.GestureRecognizers != null)

0 commit comments

Comments
 (0)