mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Additional accessibilityLabels for VoiceOver users (take #2)
This commit is contained in:
parent
f56f3723ee
commit
5cccdcea22
14 changed files with 905 additions and 164 deletions
|
|
@ -115,6 +115,17 @@ extension String {
|
|||
.joined()
|
||||
}
|
||||
|
||||
/// Formats a short name like "P130" to read as "Node P 130" for VoiceOver
|
||||
/// This ensures proper pronunciation of alphanumeric node IDs
|
||||
func formatNodeNameForVoiceOver() -> String {
|
||||
let spaced = self.replacingOccurrences(
|
||||
of: #"([A-Za-z])([0-9]+)"#,
|
||||
with: "$1 $2",
|
||||
options: .regularExpression
|
||||
)
|
||||
return "Node " + spaced
|
||||
}
|
||||
|
||||
// Adds variation selectors to prefer the graphical form of emoji.
|
||||
// Looks ahead to make sure that the variation selector is not already applied.
|
||||
var addingVariationSelectors: String {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue