Skip to content

Commit

Permalink
[UIKit] Make UIView.HitTest's return value nullable. Fixes xamarin#19019
Browse files Browse the repository at this point in the history
  • Loading branch information
rolfbjarne authored Sep 15, 2023
1 parent c14f9ff commit 703ee68
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 4 deletions.
1 change: 1 addition & 0 deletions src/uikit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16425,6 +16425,7 @@ interface UIView : UIAppearance, UIAppearanceContainer, UIAccessibility, UIDynam
bool ExclusiveTouch { [Bind ("isExclusiveTouch")] get; set; }

[Export ("hitTest:withEvent:")]
[return: NullAllowed]
UIView HitTest (CGPoint point, [NullAllowed] UIEvent uievent);

[Export ("pointInside:withEvent:")]
Expand Down
1 change: 0 additions & 1 deletion tests/xtro-sharpie/api-annotations-dotnet/iOS-UIKit.ignore
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,6 @@
!missing-null-allowed! 'UIKit.UIView UIKit.UITableViewDelegate::GetViewForHeader(UIKit.UITableView,System.IntPtr)' is missing an [NullAllowed] on return type
!missing-null-allowed! 'UIKit.UIView UIKit.UITouch::get_View()' is missing an [NullAllowed] on return type
!missing-null-allowed! 'UIKit.UIView UIKit.UIView::get_Superview()' is missing an [NullAllowed] on return type
!missing-null-allowed! 'UIKit.UIView UIKit.UIView::HitTest(CoreGraphics.CGPoint,UIKit.UIEvent)' is missing an [NullAllowed] on return type
!missing-null-allowed! 'UIKit.UIView UIKit.UIView::SnapshotView(System.Boolean)' is missing an [NullAllowed] on return type
!missing-null-allowed! 'UIKit.UIView UIKit.UIView::ViewWithTag(System.IntPtr)' is missing an [NullAllowed] on return type
!missing-null-allowed! 'UIKit.UIView UIKit.UIViewControllerContextTransitioning::GetViewFor(Foundation.NSString)' is missing an [NullAllowed] on return type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,6 @@
!missing-null-allowed! 'UIKit.UIView UIKit.UITableViewDelegate::GetViewForHeader(UIKit.UITableView,System.IntPtr)' is missing an [NullAllowed] on return type
!missing-null-allowed! 'UIKit.UIView UIKit.UITouch::get_View()' is missing an [NullAllowed] on return type
!missing-null-allowed! 'UIKit.UIView UIKit.UIView::get_Superview()' is missing an [NullAllowed] on return type
!missing-null-allowed! 'UIKit.UIView UIKit.UIView::HitTest(CoreGraphics.CGPoint,UIKit.UIEvent)' is missing an [NullAllowed] on return type
!missing-null-allowed! 'UIKit.UIView UIKit.UIView::SnapshotView(System.Boolean)' is missing an [NullAllowed] on return type
!missing-null-allowed! 'UIKit.UIView UIKit.UIView::ViewWithTag(System.IntPtr)' is missing an [NullAllowed] on return type
!missing-null-allowed! 'UIKit.UIView UIKit.UIViewControllerContextTransitioning::GetViewFor(Foundation.NSString)' is missing an [NullAllowed] on return type
Expand Down
1 change: 0 additions & 1 deletion tests/xtro-sharpie/iOS-UIKit.ignore
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,6 @@
!missing-null-allowed! 'UIKit.UIView UIKit.UITableViewDelegate::GetViewForHeader(UIKit.UITableView,System.nint)' is missing an [NullAllowed] on return type
!missing-null-allowed! 'UIKit.UIView UIKit.UITouch::get_View()' is missing an [NullAllowed] on return type
!missing-null-allowed! 'UIKit.UIView UIKit.UIView::get_Superview()' is missing an [NullAllowed] on return type
!missing-null-allowed! 'UIKit.UIView UIKit.UIView::HitTest(CoreGraphics.CGPoint,UIKit.UIEvent)' is missing an [NullAllowed] on return type
!missing-null-allowed! 'UIKit.UIView UIKit.UIView::SnapshotView(System.Boolean)' is missing an [NullAllowed] on return type
!missing-null-allowed! 'UIKit.UIView UIKit.UIView::ViewWithTag(System.nint)' is missing an [NullAllowed] on return type
!missing-null-allowed! 'UIKit.UIView UIKit.UIViewControllerContextTransitioning::GetViewFor(Foundation.NSString)' is missing an [NullAllowed] on return type
Expand Down
1 change: 0 additions & 1 deletion tests/xtro-sharpie/tvOS-UIKit.ignore
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,6 @@
!missing-null-allowed! 'UIKit.UIView UIKit.UITableViewDelegate::GetViewForHeader(UIKit.UITableView,System.nint)' is missing an [NullAllowed] on return type
!missing-null-allowed! 'UIKit.UIView UIKit.UITouch::get_View()' is missing an [NullAllowed] on return type
!missing-null-allowed! 'UIKit.UIView UIKit.UIView::get_Superview()' is missing an [NullAllowed] on return type
!missing-null-allowed! 'UIKit.UIView UIKit.UIView::HitTest(CoreGraphics.CGPoint,UIKit.UIEvent)' is missing an [NullAllowed] on return type
!missing-null-allowed! 'UIKit.UIView UIKit.UIView::SnapshotView(System.Boolean)' is missing an [NullAllowed] on return type
!missing-null-allowed! 'UIKit.UIView UIKit.UIView::ViewWithTag(System.nint)' is missing an [NullAllowed] on return type
!missing-null-allowed! 'UIKit.UIView UIKit.UIViewControllerContextTransitioning::GetViewFor(Foundation.NSString)' is missing an [NullAllowed] on return type
Expand Down

0 comments on commit 703ee68

Please sign in to comment.