In my project I use siri shortcuts with INUIAddVoiceShortcutButton
.
I use this method to create the button and associate the NSUserActivity
:
let button = INUIAddVoiceShortcutButton(style: .blackOutline)
view.addSubview(button)
button.shortcut = INShortcut.userActivity(activityPreCreated)
In iOS 12 all works right, the button add or edit the shortcuts. But in iOS 13 the button only add but doesn't edit the shortcut and remain with the text "Add to Siri".
Is a bug of the beta or I do something wrong?
Thanks in advance.