I am trying to find out how I can automatically create a shortcut like this. Of course the user interaction to save this shortcut is recommend.
if let createShortcutURL = URL(string: "shortcuts://create-shortcut?name=YourShortcutName&url=YOUR_URL_ENCODED_CONTENT") {
UIApplication.shared.open(createShortcutURL, options: [:], completionHandler: nil)
It just opens the window in the shortcut app to create a new "shortcut".
Has anyone already had experience in this context?
Currently, Apple has not documented programatic creation of a shortcut inside Shortcut.app using a
shortcut://
URLLooking at the documentation Open and create a shortcut using a URL scheme on iPhone or iPad - Apple Support
The documentation does not show
?name=
available forcreate-shortcut