Add sticker description to Voiceover
This commit is contained in:
parent
51940a60e8
commit
bb62010b71
@ -197,8 +197,18 @@ public class CVComponentSticker: CVComponentBase, CVComponent {
|
||||
|
||||
extension CVComponentSticker: CVAccessibilityComponent {
|
||||
public var accessibilityDescription: String {
|
||||
// NOTE: We could include the strings used for sticker suggestion.
|
||||
OWSLocalizedString("ACCESSIBILITY_LABEL_STICKER",
|
||||
comment: "Accessibility label for stickers.")
|
||||
if let approximateEmoji = stickerMetadata?.firstEmoji {
|
||||
return String(
|
||||
format: OWSLocalizedString(
|
||||
"ACCESSIBILITY_LABEL_STICKER_FORMAT",
|
||||
comment: "Accessibility label for stickers. Embeds {{ name of top emoji the sticker resembles }}"),
|
||||
approximateEmoji
|
||||
)
|
||||
} else {
|
||||
return OWSLocalizedString(
|
||||
"ACCESSIBILITY_LABEL_STICKER",
|
||||
comment: "Accessibility label for stickers."
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -25,6 +25,9 @@
|
||||
/* Accessibility label for stickers. */
|
||||
"ACCESSIBILITY_LABEL_STICKER" = "Sticker";
|
||||
|
||||
/* Accessibility label for stickers. Embeds {{ name of top emoji the sticker resembles }} */
|
||||
"ACCESSIBILITY_LABEL_STICKER_FORMAT" = "Sticker similar to %@";
|
||||
|
||||
/* Accessibility label for a voice memo. */
|
||||
"ACCESSIBILITY_LABEL_VOICE_MEMO" = "Voice message";
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user