mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Fix accessibility for app settings button.
This commit is contained in:
parent
14b20db7cb
commit
52af57f8a3
1 changed files with 2 additions and 2 deletions
|
@ -512,9 +512,8 @@ NSString *const kArchivedConversationsReuseIdentifier = @"kArchivedConversations
|
|||
addGestureRecognizer:[[UITapGestureRecognizer alloc] initWithTarget:self
|
||||
action:@selector(settingsButtonPressed:)]];
|
||||
settingsButton = [[UIBarButtonItem alloc] initWithCustomView:avatarView];
|
||||
settingsButton.accessibilityLabel = CommonStrings.openSettingsButton;
|
||||
} else {
|
||||
// iOS 9 has a bug around layout of custom views in UIBarButtonItem,
|
||||
// iOS 9 and 10 have a bug around layout of custom views in UIBarButtonItem,
|
||||
// so we just use a simple icon.
|
||||
UIImage *image = [UIImage imageNamed:@"button_settings_white"];
|
||||
settingsButton = [[UIBarButtonItem alloc] initWithImage:image
|
||||
|
@ -522,6 +521,7 @@ NSString *const kArchivedConversationsReuseIdentifier = @"kArchivedConversations
|
|||
target:self
|
||||
action:@selector(settingsButtonPressed:)];
|
||||
}
|
||||
settingsButton.accessibilityLabel = CommonStrings.openSettingsButton;
|
||||
self.navigationItem.leftBarButtonItem = settingsButton;
|
||||
|
||||
self.navigationItem.rightBarButtonItem =
|
||||
|
|
Loading…
Reference in a new issue