3

I have a widget with Intents configured for my iOS 14 app. For the small widget, the intent is necessary because I can only fit half of the information that I could display so I give the user what half to display through the intent selection. For the medium sized widget it is not necessary because I can fit all information side by side in an HStack.
Is there a way to enable the intent for only certain families of widgets?

4

1 回答 1

0

显然这是不可能的,我必须创建两个小部件,一个是静态的,一个是带有意图的,然后将它们放在一个 Widget Bundle 中。这个“应该”工作正常,但我收到另一个错误,与Failed to launch home screen widget in iOS 14 Simulator相同,但答案对我来说没有意义。

于 2020-10-01T00:31:45.970 回答