mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Added more accessibility info to the name field
This commit is contained in:
parent
4012f91777
commit
15a0eccaf2
2 changed files with 11 additions and 0 deletions
|
@ -254,6 +254,9 @@ class SettingsViewModel: SessionTableViewModel<SettingsViewModel.NavButton, Sett
|
|||
customPadding: SessionCell.Padding(bottom: Values.smallSpacing),
|
||||
backgroundStyle: .noBackground
|
||||
),
|
||||
accessibility: SessionCell.Accessibility(
|
||||
label: "Profile picture"
|
||||
),
|
||||
onTap: {
|
||||
self?.updateProfilePicture(
|
||||
hasCustomImage: ProfileManager.hasProfileImageData(
|
||||
|
@ -275,6 +278,10 @@ class SettingsViewModel: SessionTableViewModel<SettingsViewModel.NavButton, Sett
|
|||
customPadding: SessionCell.Padding(top: Values.smallSpacing),
|
||||
backgroundStyle: .noBackground
|
||||
),
|
||||
accessibility: SessionCell.Accessibility(
|
||||
identifier: "Username",
|
||||
label: profile.displayName()
|
||||
),
|
||||
onTap: { self?.setIsEditing(true) }
|
||||
)
|
||||
]
|
||||
|
@ -293,6 +300,9 @@ class SettingsViewModel: SessionTableViewModel<SettingsViewModel.NavButton, Sett
|
|||
styling: SessionCell.StyleInfo(
|
||||
customPadding: SessionCell.Padding(bottom: Values.smallSpacing),
|
||||
backgroundStyle: .noBackground
|
||||
),
|
||||
accessibility: SessionCell.Accessibility(
|
||||
label: "Session ID"
|
||||
)
|
||||
),
|
||||
SessionCell.Info(
|
||||
|
|
|
@ -471,6 +471,7 @@ extension SessionCell {
|
|||
|
||||
profilePictureView.accessibilityIdentifier = accessibility?.identifier
|
||||
profilePictureView.accessibilityLabel = accessibility?.label
|
||||
profilePictureView.isAccessibilityElement = (accessibility != nil)
|
||||
profilePictureView.update(
|
||||
publicKey: profileId,
|
||||
threadVariant: threadVariant,
|
||||
|
|
Loading…
Reference in a new issue