Hello!
Today, we will create a small .NET MAUI application and extend it with iOS Share App Extension.
App extensions let you extend custom functionality and content beyond your app and make it available to users while they’re interacting with other apps or the system.
I hope you already have a valid environment. Read this article on how to set up .NET MAUI.
If you prefer a video tutorial you can find it on YouTube:
So let's start!
Create a new .NET MAUI project.
Create a new Xamarin iOS Application.
Create a new App Extension and select your Xamarin iOS app from step 2.
Open App Extension csproj file and replace the content:
Open the .NET MAUI Application csproj file and add a reference to App Extension:
(Optional) Now Xamarin iOS Application can be deleted.
That's it. As a result, you should receive such app:
The full code can be found on GitHub.
Happy coding!