mirror of
https://github.com/bitwarden/mobile
synced 2025-12-28 22:23:35 +00:00
PM-1798 Fix voice over on buttons when adding new item from iOS extension (#2510)
This commit is contained in:
committed by
GitHub
parent
c1673a1bbf
commit
bf463926a3
@@ -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;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user