VoiceOver wip

This commit is contained in:
Justin Mazzocchi 2021-02-02 14:38:04 -08:00
parent 29d8d609b5
commit 3059604776
No known key found for this signature in database
GPG key ID: E223E6937AAFB01C

View file

@ -12,6 +12,7 @@ extension NSMutableAttributedString {
while let tokenRange = string.range(of: token) {
let attachment = NSTextAttachment()
attachment.accessibilityLabel = emoji.shortcode
attachment.kf.setImage(with: emoji.url, attributedView: view)
replaceCharacters(in: NSRange(tokenRange, in: string), with: NSAttributedString(attachment: attachment))
}