Skip to content

Commit

Permalink
Check for null
Browse files Browse the repository at this point in the history
  • Loading branch information
m-sadegh-sh committed Dec 27, 2023
1 parent ed52e89 commit 43da7e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Zebble/Zebble.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<RootNamespace>Zebble</RootNamespace>
<PackageId>Zebble</PackageId>
<Product>$(AssemblyName) ($(TargetFramework))</Product>
<Version>4.6.116.0</Version>
<Version>4.6.117.0</Version>
<PackOnBuild>true</PackOnBuild>
<UseMaui>true</UseMaui>
<SingleProject>true</SingleProject>
Expand Down
4 changes: 3 additions & 1 deletion Zebble/iOS/Gestures/IOSRenderer.Gestures.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,9 @@ void HandleLongPressGestures(UITapGestureRecognizer tapRecognizer)
Delegate = new LongPressGestureRecognizerDelegate()
};

longPressGestureRecognizer.ShouldBeRequiredToFailByGestureRecognizer(tapRecognizer);
if (tapRecognizer is not null)
longPressGestureRecognizer.ShouldBeRequiredToFailByGestureRecognizer(tapRecognizer);

Result.AddGestureRecognizer(longPressGestureRecognizer);
}

Expand Down

0 comments on commit 43da7e6

Please sign in to comment.