Siri shortcuts iOS 13 bug INUIAddVoiceShortcutButton

百般思念 提交于 2019-12-10 11:13:18

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!