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:
28
src/Samples/EmbeddedIOSNavigationIssue/Core/HomePage.xaml.cs
Normal file
28
src/Samples/EmbeddedIOSNavigationIssue/Core/HomePage.xaml.cs
Normal 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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user