Skip to content

[WIP] Ability to create and display xamarin forms page in an ios extension#891

Closed
alexeystrakh wants to merge 1 commit intobitwarden:masterfrom
alexeystrakh:xamarin-forms-in-ios-extension
Closed

[WIP] Ability to create and display xamarin forms page in an ios extension#891
alexeystrakh wants to merge 1 commit intobitwarden:masterfrom
alexeystrakh:xamarin-forms-in-ios-extension

Conversation

@alexeystrakh
Copy link
Copy Markdown

@alexeystrakh alexeystrakh commented May 9, 2020

This PR shows how to use Xamarin.Forms pages in an iOS extensions. This will allow to move all the native iOS controllers to the shared XF core and implement them with Xaml, MVVM and hot reload.

The key steps are:

  1. Add XF NuGet reference
  2. initialize XF
  3. Do NOT load XF app
  4. Create XF pages and convert them to view controller with CreateViewController method
  5. Stay alert on memory usage by your extension as XF will add memory pressure and extensions are strict on that.

I've tested on sim and device, in release configuration with enabled linker (SDK Only or All) the extension performs well, no issues found with this approach.

bitwarden-x

@CLAassistant
Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@alexeystrakh alexeystrakh marked this pull request as draft May 15, 2020 22:32
@eliykat
Copy link
Copy Markdown
Member

eliykat commented May 4, 2021

Hi @alexeystrakh, thanks for the submission! If you're still interested in progressing this PR, can you please sign the CLA (see instructions above). I'll then schedule it for further review.

@mpbw2
Copy link
Copy Markdown
Contributor

mpbw2 commented May 4, 2021

@eliykat We can actually close this one - Alexey is from the Xamarin team and created this for demonstration purposes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants