Commit b854eec1 authored by Robbie Gibson's avatar Robbie Gibson Committed by Commit Bot

[iOS] Improve Voice Control name on settings

This demonstrates the use of accessibilityUserInputLabels.

Before, the default Voice Control name for one of the settings rows
was both the setting name and the value (e.g. "Search Engine Google").
This is because the default name comes from the text in the cell. Now,
the name is manually set to just the type of setting (e.g. "Search
Engine"), which is a better experience.

Bug: 1004319
Change-Id: Ie79a5bba46f8c6b688f1a31be20ef802875a2a4a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1806462
Commit-Queue: Robbie Gibson <rkgibson@google.com>
Reviewed-by: default avatarSergio Collazos <sczs@chromium.org>
Cr-Commit-Position: refs/heads/master@{#697168}
parent 0907ea8d
......@@ -293,4 +293,8 @@ const CGFloat kCellLabelsWidthProportion = 3.0f;
return self.detailTextLabel.text;
}
- (NSArray<NSString*>*)accessibilityUserInputLabels {
return @[ self.textLabel.text ];
}
@end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment