Skip to content

Commit

Permalink
fix voice over for finnish (#1387)
Browse files Browse the repository at this point in the history
* fix voice over for finnish

* experiment with scalars

* fix scalars

* better solution

* fix

---------

Co-authored-by: Andrii Momot <[email protected]>
  • Loading branch information
AndreyMomot and Andrii Momot authored Nov 12, 2024
1 parent 7d54b99 commit a86d10b
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,10 @@ public extension String {
NSAttributedString(string: self, attributes: attributes)
}

// Extension if we want to ignore emojies for VoiceOver reader
// Ignores emojies symbols accrodingly to https://www.ascii-code.com
func withoutEmoji() -> String {
filter { $0.isASCII }
let filteredScalars = unicodeScalars.filter { !$0.properties.isEmojiPresentation }
return String(filteredScalars)
}
}

Expand Down

0 comments on commit a86d10b

Please sign in to comment.