Skip to content

Commit

Permalink
Workaround now only targets iOS
Browse files Browse the repository at this point in the history
Added ios as a target & added compiler directive to the workaround
  • Loading branch information
Axemasta committed Feb 13, 2024
1 parent 696f679 commit 583415c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/Maui/Prism.Maui/Controls/PrismNavigationPage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -53,5 +54,6 @@ protected override async void OnDisappearing()

base.OnDisappearing();
}
#endif
}

2 changes: 1 addition & 1 deletion src/Maui/Prism.Maui/Prism.Maui.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net8.0;net8.0-android</TargetFrameworks>
<TargetFrameworks>net8.0;net8.0-android;net8.0-ios;</TargetFrameworks>
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net8.0-windows10.0.19041</TargetFrameworks>
<Description>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).

Expand Down

0 comments on commit 583415c

Please sign in to comment.