diff --git a/src/Maui/Prism.Maui/Controls/PrismNavigationPage.cs b/src/Maui/Prism.Maui/Controls/PrismNavigationPage.cs index 16507010de..87b706199b 100644 --- a/src/Maui/Prism.Maui/Controls/PrismNavigationPage.cs +++ b/src/Maui/Prism.Maui/Controls/PrismNavigationPage.cs @@ -42,6 +42,7 @@ private async void HandleBackButtonPressed(object sender, EventArgs args) await MvvmHelpers.HandleNavigationPageGoBack(this); } +#if IOS protected override async void OnDisappearing() { var presentationStyle = Microsoft.Maui.Controls.PlatformConfiguration.iOSSpecific.Page.GetModalPresentationStyle(this); @@ -53,5 +54,6 @@ protected override async void OnDisappearing() base.OnDisappearing(); } +#endif } diff --git a/src/Maui/Prism.Maui/Prism.Maui.csproj b/src/Maui/Prism.Maui/Prism.Maui.csproj index 403f39fe99..547fcc78b6 100644 --- a/src/Maui/Prism.Maui/Prism.Maui.csproj +++ b/src/Maui/Prism.Maui/Prism.Maui.csproj @@ -1,7 +1,7 @@ - net8.0;net8.0-android + net8.0;net8.0-android;net8.0-ios; $(TargetFrameworks);net8.0-windows10.0.19041 Prism provides an implementation of a collection of design patterns that are helpful in writing well structured, maintainable, and testable XAML applications, including MVVM, dependency injection, commanding, event aggregation, and more. Prism's core functionality is a shared library targeting the .NET Framework and .NET. Features that need to be platform specific are implemented in the respective libraries for the target platform (WPF, Uno Platform, .NET MAUI and Xamarin Forms).