From 7e9655e903e47a608e53f8becd48ce785f404cdc Mon Sep 17 00:00:00 2001 From: Jed Fox Date: Mon, 6 Feb 2023 21:52:26 -0500 Subject: [PATCH] =?UTF-8?q?Apply=20=E2=80=9Ctranslated=20from=E2=80=9D=20l?= =?UTF-8?q?abel=20to=20StatusView=20accessibilityLabel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../MastodonUI/View/Content/StatusView+ViewModel.swift | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/MastodonSDK/Sources/MastodonUI/View/Content/StatusView+ViewModel.swift b/MastodonSDK/Sources/MastodonUI/View/Content/StatusView+ViewModel.swift index a3b2023a5..4f53ba21a 100644 --- a/MastodonSDK/Sources/MastodonUI/View/Content/StatusView+ViewModel.swift +++ b/MastodonSDK/Sources/MastodonUI/View/Content/StatusView+ViewModel.swift @@ -857,13 +857,14 @@ extension StatusView.ViewModel { } .store(in: &disposeBag) - Publishers.CombineLatest3( + Publishers.CombineLatest4( shortAuthorAccessibilityLabel, contentAccessibilityLabel, + translatedFromLabel, mediaAccessibilityLabel ) - .map { author, content, media in - var labels: [String?] = [content, media] + .map { author, content, translated, media in + var labels: [String?] = [content, translated, media] if statusView.style != .notification { labels.insert(author, at: 0)