1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-17 08:43:21 +00:00

MAUI Sample iOS Extension Tap gesture workaround

This commit is contained in:
Federico Maccaroni
2023-12-26 18:47:59 -03:00
parent fa022a1a4f
commit ca95ada8e8
56 changed files with 2928 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
namespace Bit.Core;
public partial class HomePage : ContentPage
{
public HomePage(AppOptions appOptions = null)
{
InitializeComponent();
if (appOptions is null)
{
StartLoginAction = () => Navigation.PushModalAsync(new LoginPage());
CloseAction = () => Navigation.PopModalAsync();
}
}
public Action StartLoginAction { get; set; }
public Action CloseAction { get; set; }
void Login_Clicked(System.Object sender, System.EventArgs e)
{
StartLoginAction();
}
void Cancel_Clicked(System.Object sender, System.EventArgs e)
{
CloseAction();
}
}