Add unique identifier to Spotlight attributes to prevent duplicate spotlight search results

This commit is contained in:
Maurice Parker 2019-08-25 11:51:08 -05:00
parent 0b48c3893d
commit eb9c176f90
1 changed files with 1 additions and 0 deletions

View File

@ -38,6 +38,7 @@ class ActivityFactory {
attributeSet.title = article.title
attributeSet.contentDescription = article.summary
attributeSet.keywords = keywords
attributeSet.relatedUniqueIdentifier = article.url
if let image = article.avatarImage() {
attributeSet.thumbnailData = image.pngData()