Using Swift for iOS/Mac OS shortcuts?


I'm new to learning Swift and I came up with the idea to try to code some simple shortcuts for iOS/Mac using Swift, like using some API's etc.

I wonder if anyone has done it already, how limited it is and if there is any documentation/tutorials etc?

Thanks in advance.

Unfortunately you cannot write simple shortcuts in Swift. You need to write an application that vends shortcuts to the OS. These wwdc sessions should help:

1 Like

You may have a look into a2/swift-shortcuts. It looks inactive, but maybe it still works with newer iOS versions.

1 Like