Slide 33
Slide 33 text
Here is where we actually abuse Siri the most, we should map from our list of
repos and then build our INPerson entities from that data and pass it back as a
disambiguation to siri, this will generate this output:
// If no recipients were provided we'll need to prompt for a value.
if recipients.count == 0 {
// TODO: Read from the DB/store the list of repos and statuses
let person = INPerson(personHandle: INPersonHandle(value: "RxViewModel", type: .unknown),
nameComponents: nil,
displayName: "✅\tRxViewModel",
image: nil,
contactIdentifier: nil,
customIdentifier: "RxViewModel")
completion([INPersonResolutionResult.disambiguation(with: matchingContacts)])
return
}
Roberto Esteban Torres - @esttorhe, Mobilization, 2016