diff --git a/src/Core/src/Platform/iOS/LayoutView.cs b/src/Core/src/Platform/iOS/LayoutView.cs index a86b69555fa7..4d5b59958f44 100644 --- a/src/Core/src/Platform/iOS/LayoutView.cs +++ b/src/Core/src/Platform/iOS/LayoutView.cs @@ -21,7 +21,7 @@ public override void WillRemoveSubview(UIView uiview) Superview?.SetNeedsLayout(); } - public override UIView HitTest(CGPoint point, UIEvent? uievent) + public override UIView? HitTest(CGPoint point, UIEvent? uievent) { var result = base.HitTest(point, uievent); @@ -31,7 +31,7 @@ public override UIView HitTest(CGPoint point, UIEvent? uievent) // then we exclude the LayoutView itself from hit testing. But it's children are valid // hit testing targets. - return null!; + return null; } return result!; diff --git a/src/Core/src/PublicAPI/net-ios/PublicAPI.Shipped.txt b/src/Core/src/PublicAPI/net-ios/PublicAPI.Shipped.txt index 46734dcc64b6..8ee2421728f3 100644 --- a/src/Core/src/PublicAPI/net-ios/PublicAPI.Shipped.txt +++ b/src/Core/src/PublicAPI/net-ios/PublicAPI.Shipped.txt @@ -2137,7 +2137,7 @@ override Microsoft.Maui.Platform.ContainerViewController.ViewDidLayoutSubviews() override Microsoft.Maui.Platform.ContentView.LayoutSubviews() -> void override Microsoft.Maui.Platform.ContentView.SetNeedsLayout() -> void override Microsoft.Maui.Platform.ContentView.SizeThatFits(CoreGraphics.CGSize size) -> CoreGraphics.CGSize -override Microsoft.Maui.Platform.LayoutView.HitTest(CoreGraphics.CGPoint point, UIKit.UIEvent? uievent) -> UIKit.UIView! +override Microsoft.Maui.Platform.LayoutView.HitTest(CoreGraphics.CGPoint point, UIKit.UIEvent? uievent) -> UIKit.UIView? override Microsoft.Maui.Platform.LayoutView.LayoutSubviews() -> void override Microsoft.Maui.Platform.LayoutView.SetNeedsLayout() -> void override Microsoft.Maui.Platform.LayoutView.SizeThatFits(CoreGraphics.CGSize size) -> CoreGraphics.CGSize diff --git a/src/Core/src/PublicAPI/net-maccatalyst/PublicAPI.Shipped.txt b/src/Core/src/PublicAPI/net-maccatalyst/PublicAPI.Shipped.txt index 99b100cd5bac..e4ce5ca05a5d 100644 --- a/src/Core/src/PublicAPI/net-maccatalyst/PublicAPI.Shipped.txt +++ b/src/Core/src/PublicAPI/net-maccatalyst/PublicAPI.Shipped.txt @@ -2136,7 +2136,7 @@ override Microsoft.Maui.Platform.ContainerViewController.ViewDidLayoutSubviews() override Microsoft.Maui.Platform.ContentView.LayoutSubviews() -> void override Microsoft.Maui.Platform.ContentView.SetNeedsLayout() -> void override Microsoft.Maui.Platform.ContentView.SizeThatFits(CoreGraphics.CGSize size) -> CoreGraphics.CGSize -override Microsoft.Maui.Platform.LayoutView.HitTest(CoreGraphics.CGPoint point, UIKit.UIEvent? uievent) -> UIKit.UIView! +override Microsoft.Maui.Platform.LayoutView.HitTest(CoreGraphics.CGPoint point, UIKit.UIEvent? uievent) -> UIKit.UIView? override Microsoft.Maui.Platform.LayoutView.LayoutSubviews() -> void override Microsoft.Maui.Platform.LayoutView.SetNeedsLayout() -> void override Microsoft.Maui.Platform.LayoutView.SizeThatFits(CoreGraphics.CGSize size) -> CoreGraphics.CGSize