You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Shell Flyout appears in Release builds even when FlyoutBehavior="Disabled" (MacCatalyst) #32616
On MacCatalyst, setting Shell.FlyoutBehavior to Disabled prevents the flyout as expected in Debug builds. However, in Release builds the flyout can still be revealed by dragging the Shell content area from left to right.
Steps to Reproduce
Create a new .NET MAUI
Set the app Shell’s FlyoutBehavior to Disabled.
Run the app in Release, and drag from the left edge of the content.
This issue has been validated in Visual Studio Code 1.106.0 with MAUI versions (10.0.10, 10.0.0 , 10.0.0-rc2 and 10.0.0-preview1). It can be reproducible on Catalyst Platform in release mode. This issue does not reproduced in debug mode.
public class CustomShellRenderer : ShellRenderer
{
IShellFlyoutRenderer flyoutRenderer;
protected override IShellFlyoutRenderer CreateFlyoutRenderer()
{
flyoutRenderer = base.CreateFlyoutRenderer();
return flyoutRenderer;
}
public override void ViewWillAppear(bool animated)
{
base.ViewWillAppear(animated);
var type = flyoutRenderer.GetType();
var property = type.GetProperty("PanGestureRecognizer", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance);
var value = property?.GetValue(flyoutRenderer);
var recognizer = value as UIPanGestureRecognizer;
recognizer?.Enabled = false;
}
}
Activity
NafeelaNazhir commentedon Nov 14, 2025
This issue has been validated in Visual Studio Code 1.106.0 with MAUI versions (10.0.10, 10.0.0 , 10.0.0-rc2 and 10.0.0-preview1). It can be reproducible on Catalyst Platform in release mode. This issue does not reproduced in debug mode.
borrmann commentedon Nov 14, 2025
This also happens on iOS devices
Add UI test case for issue dotnet#32616
Add UI test for Shell flyout gesture when FlyoutBehavior is Disabled (#9
Add UI test for Shell flyout gesture when FlyoutBehavior is Disabled
Add UI test for Shell flyout gesture when FlyoutBehavior is Disabled
d2dyno1 commentedon Nov 15, 2025
This is also present in iOS:
trim.43204FD1-9DE8-469F-A061-35AE1D22000A.MOV
jaysidri commentedon Nov 16, 2025
I can confirm that this issue is happening on iOS, but only on a physical device.
It doesn't happen on the simulator.
Setting FlyoutBehavior in the Shell's ctor instead of setting it in XAML:
FlyoutBehavior = FlyoutBehavior.Disabled;..seems to fix this.
Matt-Mcl commentedon Nov 18, 2025
@jaysidri
This didn't seem to fix it for me sadly.. Using the below:
rolfbjarne commentedon Nov 18, 2025
This might be a duplicate of dotnet/macios#24262
Try adding this to the csproj to see if fixes the problem:
lettucrisp commentedon Nov 19, 2025
#32616 (comment)
Adding that to the csproj fixed the issue. Thank you.
michaelshodamola commentedon Dec 1, 2025
This fix the issue for me on iOS devices:
Create a custom shell renderer in platform/IOS:
Then register it in maui: