Add a programmatic label to the join room by address field

The field relied on its placeholder for a label, which VoiceOver only reads
while empty. Set a persistent accessibility label so it's always announced.

Addresses #5256.
This commit is contained in:
Mauro Romito
2026-06-22 13:35:18 +02:00
committed by Mauro
parent ed58120fd3
commit d60b41a05f
3 changed files with 3 additions and 2 deletions
@@ -53,6 +53,7 @@ struct JoinRoomByAddressView: View {
.textInputAutocapitalization(.never)
.autocorrectionDisabled()
.textContentType(.URL)
.accessibilityLabel(L10n.screenStartChatJoinRoomByAddressPlaceholder)
.focused($textFieldFocus)
.onChange(of: context.roomAddress) { _, newValue in
context.roomAddress = newValue.trimmingCharacters(in: .whitespacesAndNewlines)