Posts

Post not yet marked as solved
3 Replies
Try to Clean Build Folder, then Build your app again.
Post not yet marked as solved
1 Replies
You've to implement "INUIAddVoiceShortcutViewControllerDelegate" to the presenting controller and then add the following methods:func addVoiceShortcutViewController(_ controller: INUIAddVoiceShortcutViewController, didFinishWith voiceShortcut: INVoiceShortcut?, error: Error?) { controller.dismiss(animated: true, completion: nil) } func addVoiceShortcutViewControllerDidCancel(_ controller: INUIAddVoiceShortcutViewController) { controller.dismiss(animated: true, completion: nil) }To dismiss the "INUIAddVoiceShortcutViewControllerDelegate" you've to call "controller.dismiss(animated: true, completion: nil)" in those methods.When you present the "INUIAddVoiceShortcutViewControllerDelegate" you've to set as delegate the presenting controller:let viewController = INUIAddVoiceShortcutViewController(shortcut: inShortcut) viewController.modalPresentationStyle = .pageSheet viewController.delegate = self self.present(viewController, animated: true, completion: nil)