I'm trying to use a custom system image for my App Shortcut:
AppShortcut(
intent: AppOpenIntent(),
phrases: ["Open \(.applicationName)"],
shortTitle: "Open App",
systemImageName: "custom.image"
)
I've added custom.image
to Images.xcassets
for my project, but the shortcuts icon is always blank in the Shortcuts app. Is it possible to use custom system images for app shortcuts?
The systemImage
nomenclature as a parameter name is consistently used throughout our APIs for the system-provided symbol, whereas custom symbols are loaded through standard image named
initializers. See our documentation on loading symbols, and look for these details spread throughout the different examples.
If you'd like us to consider adding the necessary functionality for using a custom symbol with an App Shortcut , please file an enhancement request using Feedback Assistant. Once you file the request, please post the FB number here.
If you're not familiar with how to file enhancement requests, take a look at Bug Reporting: How and Why?
—Ed Ford, DTS Engineer