Added more accessibility info to the name field
This commit is contained in:
parent
4012f91777
commit
15a0eccaf2
|
@ -254,6 +254,9 @@ class SettingsViewModel: SessionTableViewModel<SettingsViewModel.NavButton, Sett
|
||||||
customPadding: SessionCell.Padding(bottom: Values.smallSpacing),
|
customPadding: SessionCell.Padding(bottom: Values.smallSpacing),
|
||||||
backgroundStyle: .noBackground
|
backgroundStyle: .noBackground
|
||||||
),
|
),
|
||||||
|
accessibility: SessionCell.Accessibility(
|
||||||
|
label: "Profile picture"
|
||||||
|
),
|
||||||
onTap: {
|
onTap: {
|
||||||
self?.updateProfilePicture(
|
self?.updateProfilePicture(
|
||||||
hasCustomImage: ProfileManager.hasProfileImageData(
|
hasCustomImage: ProfileManager.hasProfileImageData(
|
||||||
|
@ -275,6 +278,10 @@ class SettingsViewModel: SessionTableViewModel<SettingsViewModel.NavButton, Sett
|
||||||
customPadding: SessionCell.Padding(top: Values.smallSpacing),
|
customPadding: SessionCell.Padding(top: Values.smallSpacing),
|
||||||
backgroundStyle: .noBackground
|
backgroundStyle: .noBackground
|
||||||
),
|
),
|
||||||
|
accessibility: SessionCell.Accessibility(
|
||||||
|
identifier: "Username",
|
||||||
|
label: profile.displayName()
|
||||||
|
),
|
||||||
onTap: { self?.setIsEditing(true) }
|
onTap: { self?.setIsEditing(true) }
|
||||||
)
|
)
|
||||||
]
|
]
|
||||||
|
@ -293,6 +300,9 @@ class SettingsViewModel: SessionTableViewModel<SettingsViewModel.NavButton, Sett
|
||||||
styling: SessionCell.StyleInfo(
|
styling: SessionCell.StyleInfo(
|
||||||
customPadding: SessionCell.Padding(bottom: Values.smallSpacing),
|
customPadding: SessionCell.Padding(bottom: Values.smallSpacing),
|
||||||
backgroundStyle: .noBackground
|
backgroundStyle: .noBackground
|
||||||
|
),
|
||||||
|
accessibility: SessionCell.Accessibility(
|
||||||
|
label: "Session ID"
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
SessionCell.Info(
|
SessionCell.Info(
|
||||||
|
|
|
@ -471,6 +471,7 @@ extension SessionCell {
|
||||||
|
|
||||||
profilePictureView.accessibilityIdentifier = accessibility?.identifier
|
profilePictureView.accessibilityIdentifier = accessibility?.identifier
|
||||||
profilePictureView.accessibilityLabel = accessibility?.label
|
profilePictureView.accessibilityLabel = accessibility?.label
|
||||||
|
profilePictureView.isAccessibilityElement = (accessibility != nil)
|
||||||
profilePictureView.update(
|
profilePictureView.update(
|
||||||
publicKey: profileId,
|
publicKey: profileId,
|
||||||
threadVariant: threadVariant,
|
threadVariant: threadVariant,
|
||||||
|
|
Loading…
Reference in New Issue