mirror of
https://github.com/bitwarden/mobile
synced 2026-01-06 10:34:07 +00:00
custom toast for ios
This commit is contained in:
@@ -10,6 +10,7 @@ using Photos;
|
||||
using System.Net;
|
||||
using System.Threading.Tasks;
|
||||
using Bit.App.Models.Page;
|
||||
using Bit.iOS.Core.Views;
|
||||
|
||||
namespace Bit.iOS.Services
|
||||
{
|
||||
@@ -28,12 +29,10 @@ namespace Bit.iOS.Services
|
||||
|
||||
public void Toast(string text, bool longDuration = false)
|
||||
{
|
||||
var snackbar = new TTGSnackBar.TTGSnackbar(text)
|
||||
new Toast(text)
|
||||
{
|
||||
Duration = TimeSpan.FromSeconds(longDuration ? 5 : 2),
|
||||
AnimationType = TTGSnackBar.TTGSnackbarAnimationType.FadeInFadeOut
|
||||
};
|
||||
snackbar.Show();
|
||||
Duration = TimeSpan.FromSeconds(longDuration ? 5 : 3)
|
||||
}.Show();
|
||||
}
|
||||
|
||||
public void CopyToClipboard(string text)
|
||||
|
||||
@@ -704,9 +704,6 @@
|
||||
<PackageReference Include="SimpleInjector">
|
||||
<Version>4.0.12</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="TTGSnackbar">
|
||||
<Version>1.3.4</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Xamarin.Google.iOS.Analytics">
|
||||
<Version>3.17.0.1</Version>
|
||||
</PackageReference>
|
||||
|
||||
Reference in New Issue
Block a user