diff options
-rw-r--r-- | Xamarin.Forms.Platform.iOS/Renderers/NavigationRenderer.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Xamarin.Forms.Platform.iOS/Renderers/NavigationRenderer.cs b/Xamarin.Forms.Platform.iOS/Renderers/NavigationRenderer.cs index 7b47b2bb..67078440 100644 --- a/Xamarin.Forms.Platform.iOS/Renderers/NavigationRenderer.cs +++ b/Xamarin.Forms.Platform.iOS/Renderers/NavigationRenderer.cs @@ -319,6 +319,10 @@ namespace Xamarin.Forms.Platform.iOS protected virtual async Task<bool> OnPushAsync(Page page, bool animated) { + if(page is MasterDetailPage) + System.Diagnostics.Trace.WriteLine($"Pushing a {nameof(MasterDetailPage)} onto a {nameof(NavigationPage)} is not a supported UI pattern on iOS. " + + "Please see https://developer.apple.com/documentation/uikit/uisplitviewcontroller for more details."); + var pack = CreateViewControllerForPage(page); var task = GetAppearedOrDisappearedTask(page); |