Apply “translated from” label to StatusView accessibilityLabel
This commit is contained in:
parent
32fbbc37c1
commit
7e9655e903
|
@ -857,13 +857,14 @@ extension StatusView.ViewModel {
|
||||||
}
|
}
|
||||||
.store(in: &disposeBag)
|
.store(in: &disposeBag)
|
||||||
|
|
||||||
Publishers.CombineLatest3(
|
Publishers.CombineLatest4(
|
||||||
shortAuthorAccessibilityLabel,
|
shortAuthorAccessibilityLabel,
|
||||||
contentAccessibilityLabel,
|
contentAccessibilityLabel,
|
||||||
|
translatedFromLabel,
|
||||||
mediaAccessibilityLabel
|
mediaAccessibilityLabel
|
||||||
)
|
)
|
||||||
.map { author, content, media in
|
.map { author, content, translated, media in
|
||||||
var labels: [String?] = [content, media]
|
var labels: [String?] = [content, translated, media]
|
||||||
|
|
||||||
if statusView.style != .notification {
|
if statusView.style != .notification {
|
||||||
labels.insert(author, at: 0)
|
labels.insert(author, at: 0)
|
||||||
|
|
Loading…
Reference in New Issue