diff --git a/src/iOS.Core/Controllers/LoginAddViewController.cs b/src/iOS.Core/Controllers/LoginAddViewController.cs index 935f70b56..359e84f00 100644 --- a/src/iOS.Core/Controllers/LoginAddViewController.cs +++ b/src/iOS.Core/Controllers/LoginAddViewController.cs @@ -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); diff --git a/src/iOS.Core/Views/FormEntryTableViewCell.cs b/src/iOS.Core/Views/FormEntryTableViewCell.cs index 3de96806a..0df70e6bc 100644 --- a/src/iOS.Core/Views/FormEntryTableViewCell.cs +++ b/src/iOS.Core/Views/FormEntryTableViewCell.cs @@ -1,4 +1,5 @@ using System; +using Bit.App.Resources; using Bit.Core; using Bit.iOS.Core.Controllers; using Bit.iOS.Core.Utilities; @@ -171,10 +172,13 @@ namespace Bit.iOS.Core.Views var button = useSecondaryButton ? SecondButton : Button; button.TitleLabel.Font = UIFont.FromName("bwi-font", 28f); button.SetTitle(BitwardenIcons.Eye, UIControlState.Normal); + button.AccessibilityLabel = AppResources.ToggleVisibility; + button.AccessibilityHint = AppResources.PasswordIsNotVisibleTapToShow; button.TouchUpInside += (sender, e) => { TextField.SecureTextEntry = !TextField.SecureTextEntry; button.SetTitle(TextField.SecureTextEntry ? BitwardenIcons.Eye : BitwardenIcons.EyeSlash, UIControlState.Normal); + button.AccessibilityHint = TextField.SecureTextEntry ? AppResources.PasswordIsNotVisibleTapToShow : AppResources.PasswordIsVisibleTapToHide; }; }