mirror of
https://github.com/metabolist/metatext.git
synced 2024-11-22 00:01:00 +00:00
Accessibility labels wip
This commit is contained in:
parent
28facbe7ab
commit
533e86caab
2 changed files with 10 additions and 2 deletions
|
@ -62,6 +62,7 @@
|
||||||
"compose.attachments-will-be-discarded" = "Attachments will be discarded when changing accounts";
|
"compose.attachments-will-be-discarded" = "Attachments will be discarded when changing accounts";
|
||||||
"compose.browse" = "Browse";
|
"compose.browse" = "Browse";
|
||||||
"compose.characters-remaining-accessibility-label-%ld" = "%ld characters remaining";
|
"compose.characters-remaining-accessibility-label-%ld" = "%ld characters remaining";
|
||||||
|
"compose.change-identity-button.accessibility-hint" = "Tap to post with a different account";
|
||||||
"compose.content-warning-button.add" = "Add content warning";
|
"compose.content-warning-button.add" = "Add content warning";
|
||||||
"compose.content-warning-button.remove" = "Remove content warning";
|
"compose.content-warning-button.remove" = "Remove content warning";
|
||||||
"compose.emoji-button" = "Emoji picker";
|
"compose.emoji-button" = "Emoji picker";
|
||||||
|
|
|
@ -184,8 +184,15 @@ private extension CompositionView {
|
||||||
}
|
}
|
||||||
.store(in: &cancellables)
|
.store(in: &cancellables)
|
||||||
|
|
||||||
parentViewModel.$identityContext.map(\.identity.image)
|
parentViewModel.$identityContext.map(\.identity)
|
||||||
.sink { [weak self] in self?.avatarImageView.kf.setImage(with: $0) }
|
.sink { [weak self] in
|
||||||
|
guard let self = self else { return }
|
||||||
|
|
||||||
|
self.avatarImageView.kf.setImage(with: $0.image)
|
||||||
|
self.changeIdentityButton.accessibilityLabel = $0.handle
|
||||||
|
self.changeIdentityButton.accessibilityHint =
|
||||||
|
NSLocalizedString("compose.change-identity-button.accessibility-hint", comment: "")
|
||||||
|
}
|
||||||
.store(in: &cancellables)
|
.store(in: &cancellables)
|
||||||
|
|
||||||
parentViewModel.$authenticatedIdentities
|
parentViewModel.$authenticatedIdentities
|
||||||
|
|
Loading…
Reference in a new issue