44.10 Implementing the Resolve Methods
SiriKit is aware of a range of parameters which can be used to specify photo search criteria. These parameters consist of the photo creation date, the geographical location where the photo was taken, the people in the photo and album in which it resides. For each of these parameters, SiriKit will call a specific resolve method on the IntentHandler instance. Each method is passed the current intent object and is required to notify Siri whether or not the parameter is required and, if so, whether the intent contains a valid property value. The methods are also passed a completion handler reference which must be called to notify Siri of the response.
The first method called by Siri is the resolveDateCreated method which should now be implemented in the IntentHandler.swift file as follows:
func resolveDateCreated(for
intent: INSearchForPhotosIntent,
with completion: @escaping
...