iOS: AppIntent parameter supporting multiple types of data?

220 Views Asked by At

I currently have 3 AppIntents that each support different kinds of input data. I'd prefer to have a single AppIntent that can receive anything - similar to the AirDrop shortcut action.

I know I can create an AppEntity with custom data, but I'm looking for input from a previous action/variable, not something defined within my app, so it doesn't seem applicable.

AppEnum doesn't work, because it requires a static display representation.

I've tried Any, AnyObject, and enum to no success.

Is this possible?

0

There are 0 best solutions below