I use NSAttributedString text ,and want attachment gif image to show in UItextview
below mycode dostn't work for gif image
let mytext = UITextview()
let result = NSMutableAttributedString()
let attachment = NSTextAttachment()
attachment.image = UIImage(named:"abc.gif")
let attachmentString = NSAttributedString(attachment: attachment)
let myString = NSMutableAttributedString(string:"")
myString.appendAttributedString(attachmentString)
result.appendAttributedString(myString)
mytext.attrbutedText = result
Please help to resolve Attachment gif image And it will play automatically. Thanks in advance