We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a32d0e8 commit 218b913Copy full SHA for 218b913
src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellItemRenderer.cs
@@ -114,11 +114,11 @@ public override void ViewDidLoad()
114
{
115
bool accept = true;
116
var r = RendererForViewController(viewController);
117
- if (r != null)
+ if (r is not null)
118
accept = ((IShellItemController)ShellItem).ProposeSection(r.ShellSection, false);
119
120
// Detect back navigation when the user taps on the current section
121
- if (r.ShellSection == _currentSection
+ if (r is not null && r.ShellSection == _currentSection
122
&& viewController is ShellSectionRenderer sectionRenderer)
123
124
sectionRenderer.PopRequested = true;
0 commit comments