我正在使用 App Intents API 通过 iOS Shortcuts 应用程序提供自动化。当我的意图运行时,我希望能够决定是否要打开应用程序(将其带到前台)。我知道openAppWhenRun可以用来打开应用程序,但它的值无法修改。
openAppWhenRun
我尝试使用openAppWhenRun,但它没有设置器。因此,我无法动态更新此变量来确定应用程序是否应在前台打开。
ios swift sirishortcuts swiftui appintents
appintents ×1
ios ×1
sirishortcuts ×1
swift ×1
swiftui ×1