1
0
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:
Kyle Spearrin
2017-12-22 16:18:16 -05:00
parent f897193f79
commit 839df123ff
5 changed files with 167 additions and 14 deletions

View File

@@ -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)

View File

@@ -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>