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.
来源:https://stackoverflow.com/questions/57410172/siri-shortcuts-ios-13-bug-inuiaddvoiceshortcutbutton