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

Closed
opened 2025-11-26 23:22:08 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/bitwarden/android/pull/891
Author: @alexeystrakh
Created: 5/9/2020
Status: Closed

Base: masterHead: xamarin-forms-in-ios-extension


📝 Commits (1)

  • 8420bc1 ability to create and display xamarin forms page in an ios extension

📊 Changes

5 files changed (+54 additions, -0 deletions)

View changed files

src/App/Pages/TestPage.xaml (+11 -0)
src/App/Pages/TestPage.xaml.cs (+16 -0)
src/App/Pages/TestPageViewModel.cs (+7 -0)
📝 src/iOS.Extension/LoadingViewController.cs (+17 -0)
📝 src/iOS.Extension/iOS.Extension.csproj (+3 -0)

📄 Description

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


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/bitwarden/android/pull/891 **Author:** [@alexeystrakh](https://github.com/alexeystrakh) **Created:** 5/9/2020 **Status:** ❌ Closed **Base:** `master` ← **Head:** `xamarin-forms-in-ios-extension` --- ### 📝 Commits (1) - [`8420bc1`](https://github.com/bitwarden/android/commit/8420bc1dd9ee171592a631d52dd8e2ca1348a3f5) ability to create and display xamarin forms page in an ios extension ### 📊 Changes **5 files changed** (+54 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `src/App/Pages/TestPage.xaml` (+11 -0) ➕ `src/App/Pages/TestPage.xaml.cs` (+16 -0) ➕ `src/App/Pages/TestPageViewModel.cs` (+7 -0) 📝 `src/iOS.Extension/LoadingViewController.cs` (+17 -0) 📝 `src/iOS.Extension/iOS.Extension.csproj` (+3 -0) </details> ### 📄 Description 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 1. initialize XF 2. Do NOT load XF app 3. Create XF pages and convert them to view controller with `CreateViewController` method 4. 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](https://user-images.githubusercontent.com/3697084/81462328-9c1c1800-9166-11ea-8b5b-de2752e963b8.gif) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-26 23:22:08 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/android#2647