I wrote a minimum app to check "Add to Siri" feature. but I found that we can not removed a voice shortcut just in particular case.
- Tap add to Siri button to add voice shortcut first time.
- Now we can see iOS 15's new user interface to add shortcut to Siri. Just tap Done button.
- The button says "Added to Siri". And I confirmed that we can execute my feature by my voice correctly. Then tap the button again.
- Next, I want to remove shortcut, so tap remove button.
- Then the button says "Add to Siri" which implies the shortcut has not registered to system any more. That's nice. Tap the button once again.
- Lastly, I want to remove shortcut again, but unexpectedly nothing happened and modal screen remains to keep showing when we tap the remove button. Seems like bug?
in Code
I set INUIAddVoiceShortcutButtonDelegate to my Instance. and it has two callback method.
func present(_ addVoiceShortcutViewController: INUIAddVoiceShortcutViewController, for addVoiceShortcutButton: INUIAddVoiceShortcutButton)
func present(_ editVoiceShortcutViewController: INUIEditVoiceShortcutViewController, for addVoiceShortcutButton: INUIAddVoiceShortcutButton)
One is called when my shortcut is not registered to system yet. and another's called when it's registered already.
And my code set editVoiceShortcutViewController.delegate just latter one. I think this is the reason why my button has NO-response. But I don't know how to prevent being called former callback.
Is this my own coding issue or Bug of iOS 15 beta 3 ?