October 2018
Beginner
750 pages
19h 11m
English
Since no unique information is associated with the user activities yet, Spotlight can't figure out that a family member that's indexed through a user activity is the same family member that was already inserted as a searchable item. To ensure that Spotlight understands this, you should add two more factory methods that create an activity item for either a family member or a movie with the correct information associated with them. Add the following methods to IndexingFactory:
static func activity(forMovie movie: Movie) -> NSUserActivity { let activityItem = activity(withType: .movieDetailView, name: movie.title!, makePublic: false) let attributes = searchableAttributes(forMovie: movie) attributes.domainIdentifier ...Read now
Unlock full access