mirror of
https://github.com/bitwarden/mobile
synced 2025-12-14 07:13:33 +00:00
custom toast implementations
This commit is contained in:
@@ -26,6 +26,16 @@ namespace Bit.iOS.Services
|
||||
_deviceInfoService = deviceInfoService;
|
||||
}
|
||||
|
||||
public void Toast(string text, bool longDuration = false)
|
||||
{
|
||||
var snackbar = new TTGSnackBar.TTGSnackbar(text)
|
||||
{
|
||||
Duration = TimeSpan.FromSeconds(longDuration ? 5 : 2),
|
||||
AnimationType = TTGSnackBar.TTGSnackbarAnimationType.FadeInFadeOut
|
||||
};
|
||||
snackbar.Show();
|
||||
}
|
||||
|
||||
public void CopyToClipboard(string text)
|
||||
{
|
||||
UIPasteboard clipboard = UIPasteboard.General;
|
||||
|
||||
Reference in New Issue
Block a user