mirror of
https://github.com/metabolist/metatext.git
synced 2024-11-22 00:01:00 +00:00
VoiceOver wip
This commit is contained in:
parent
29d8d609b5
commit
3059604776
1 changed files with 1 additions and 0 deletions
|
@ -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))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue