44.12 Handling the Intent
The last step in implementing the extension is to handle the intent. After the confirm method indicates that the extension is ready, Siri calls the handle method. This method is, once again, passed the intent object and a completion handler to be called when the intent has been handled by the extension. Implement this method now so that it reads as follows:
func handle(intent: INSearchForPhotosIntent, completion: @escaping
(INSearchForPhotosIntentResponse) -> Void) {
let activityType = "com.ebookfrenzy.siriphotointent"
let activity = NSUserActivity(activityType: activityType)
let response = INSearchForPhotosIntentResponse(code:
INSearchForPhotosIntentResponseCode.continueInApp,
...