When the new PDX Transit is out, whenever you bookmark a transit stop, it’ll make App Shortcuts which you can add to your Home Screen.

They can be used to get arrival times or view related service alerts for that stop. Check it out:

#SwiftUI #AppShortcuts #iOSDev #PDXTransit #PublicTransit #PDX

Ever wanted to teach Siri to plant seeds or pick fruit? 🍎🌱

I wrote a fun tutorial on how to give your app superpowers using App Intents and App Shortcuts — no magic wand required 🧙‍♂️

You’ll learn to:
✅ Trigger actions with voice
✅ Expose your app’s data to Shortcuts
✅ Keep everything fresh with dynamic updates

Take a stroll through the garden 🌿👇
🔗 https://rogy.app/1518

#Swift #iOSDev #SwiftUI #AppIntents #AppShortcuts #AppleIntelligence #Siri #Shortcuts

Now that I have #AppShortcuts complete for #PDXTransit, I’m getting into Widgets with #WidgetKit. 🤓

I made my own “hints view" for Shortcuts if they're available in your current context. They show what you can say to Siri.

Apple made SiriTipView but they're a bit of an eye sore. heh.

#Siri #SiriShortcuts #AppIntents #AppShortcuts #SwiftUI

I made an App Shortcut that takes a Trimet Stop ID in the Siri UI and then presents arrival times for that stop in the subsequent view. Works so quickly — probably a better experience than opening the app tbh!

Also, the HomePod experience for this just works! It will say the upcoming arrivals nicely since there’s no visual UI.

#AppShortcuts #AppIntents #Siri #SiriShortcuts #SwiftUI

I think I am all set when it comes to App Shortcuts but will need to do a bit more testing for responses when using HomePod.

#AppIntents #AppShortcuts #SwiftUI #SiriShortcuts

Have fun with your App Shortcut platters in the Shortcuts app by giving it a light and dark mode theme... don't be boring like all the others. :)

#AppIntents #AppShortcuts #SwiftUI #SiriShortcuts

By the way, if your iOS ships #AppShortcuts with a custom background tile color (for the Shortcuts app), its most likely that it only works on iPhone and not iPad.

I was able to get it to work on iPad by making a duplicate entry in the info plist for “CFBundleIcons" to be “CFBundleIcons~ipad" because I remembered about "Device-Specific Keys" from this article.

So now my background tiles show up green on iPadOS Shortcuts app.

#SwiftUI #iOSDev #AppIntents #Shortcuts

https://developer.apple.com/documentation/bundleresources/managing-your-app-s-information-property-list

Managing Your App’s Information Property List | Apple Developer Documentation

Create and customize an information property list file for your app using Xcode.

Apple Developer Documentation
Does anyone know how to group #AppShortcuts like this in the apple sample app?
Especially with dynamically suggested options (from an AppEntity)?
I have implemented suggested entities function and index them in spotlight,... But they don't show up like in the sample app.
They did not create a seperate App shortcut for each item.
Sample: https://developer.apple.com/documentation/appintents/acceleratingappinteractionswithappintents
#swift #swiftui
Accelerating app interactions with App Intents | Apple Developer Documentation

Enable people to use your app’s features quickly through Siri, Spotlight, and Shortcuts.

Apple Developer Documentation

The same App Shortcuts/App Intents code from iOS “Just Works”™ on watchOS too. And the Bookmarks saved in the app sync via iCloud. Noice. 👍

Each one makes a service call to get arrival times or alerts and for a watch, it’s pretty damn quick!

#AppShortcuts #AppIntents #Siri #SwiftUI