Visually Rich Links Tutorial for iOS: Image Thumbnails | Kodeco


This is a companion discussion topic for the original entry at https://www.kodeco.com/7565482-visually-rich-links-tutorial-for-ios-image-thumbnails

Ні. I have a case when metadata ha imageProvider == nil. How can I substitute my own image and have the same iMessage like behavior??

I tried to do this but the view didn’t apply my image:

metadata.imageProvider = NSItemProvider(contentsOf: Bundle.main.url(forResource: "TestImage", withExtension: "jpg"))