1
0
mirror of https://github.com/bitwarden/mobile synced 2026-01-19 17:03:21 +00:00

PM-3350 iOS applied workaround on the iOS Autofill and Share extension to maui embed the navigation page with its content page in the Window

This commit is contained in:
Federico Maccaroni
2023-11-30 18:23:54 -03:00
parent a5804df6a3
commit 7f4bbafe3c
5 changed files with 33 additions and 85 deletions

View File

@@ -35,7 +35,7 @@ namespace Bit.iOS.Core.Utilities
})
.UseMauiEmbedding<Application>();
// Register the Window
builder.Services.Add(new ServiceDescriptor(typeof(UIWindow), UIApplication.SharedApplication.KeyWindow));
builder.Services.Add(new ServiceDescriptor(typeof(UIWindow), _ => UIApplication.SharedApplication.KeyWindow, ServiceLifetime.Singleton));
var mauiApp = builder.Build();
MauiContextSingleton.Instance.Init(new MauiContext(mauiApp.Services));