1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-13 23:03:23 +00:00

PM-1798 Fix voice over on buttons when adding new item from iOS extension (#2510)

This commit is contained in:
Federico Maccaroni
2023-05-05 20:18:01 +02:00
committed by GitHub
parent c1673a1bbf
commit bf463926a3
2 changed files with 6 additions and 0 deletions

View File

@@ -72,6 +72,7 @@ namespace Bit.iOS.Core.Controllers
UsernameCell.TextField.ReturnKeyType = UIReturnKeyType.Next;
UsernameCell.Button.TitleLabel.Font = UIFont.FromName("bwi-font", 28f);
UsernameCell.Button.SetTitle(BitwardenIcons.Generate, UIControlState.Normal);
UsernameCell.Button.AccessibilityLabel = AppResources.GenerateUsername;
UsernameCell.Button.TouchUpInside += (sender, e) =>
{
LaunchUsernameGeneratorFlow();
@@ -86,6 +87,7 @@ namespace Bit.iOS.Core.Controllers
PasswordCell.TextField.ReturnKeyType = UIReturnKeyType.Next;
PasswordCell.Button.TitleLabel.Font = UIFont.FromName("bwi-font", 28f);
PasswordCell.Button.SetTitle(BitwardenIcons.Generate, UIControlState.Normal);
PasswordCell.Button.AccessibilityLabel = AppResources.GeneratePassword;
PasswordCell.Button.TouchUpInside += (sender, e) =>
{
PerformSegue("passwordGeneratorSegue", this);