redth-org / BTProgressHUD

Port to Xamarin.iOS of the SVProgressHUD
Other
118 stars 64 forks source link

Add net6.0-maccatalyst support #99

Closed aritchie closed 2 years ago

aritchie commented 2 years ago

:sparkles: What kind of change does this PR introduce? (Bug fix, feature, docs update...)

This adds net6.0-maccatalyst support as well as adding a new MAUI app that targets iOS and Catalyst To support catalyst, only one method needed to be compiler flagged: private float GetKeyboardHeightFromNotification(NSNotification? notification, bool ignoreOrientation, UIInterfaceOrientation orientation, ref double animationDuration) => 0;

:arrow_heading_down: What is the current behavior?

N/A

:new: What is the new behavior (if this is a feature change)?

N/A

:boom: Does this PR introduce a breaking change?

No

:bug: Recommendations for testing

Same as iOS

:memo: Links to relevant issues/docs

98

:thinking: Checklist before submitting

Cheesebaron commented 2 years ago

Cool! Seems to work nice.

For someone who wants to try, make sure to do:

dotnet workload install ios maccatalyst

Then you can build and run with:

dotnet build -t:Build -p:Configuration=Debug -f net6.0-maccatalyst BTProgressHUDDemo2/BTProgressHUDDemo2.csproj
dotnet build -t:Run -p:Configuration=Debug -f net6.0-maccatalyst BTProgressHUDDemo2/BTProgressHUDDemo2.csproj