My widget's layout is like:
I want to configure this widget in this way:
So I add two parameters in my custom intent, and checked Supports multiple values and Fixed size.
For big items, everything is ok, I just set array size to be 2 at every widget size.
However, for the small items, when I make the array size to be 0 in small widget size, I get an alert: Array size must be a positive number.
How can I implement this requirement in intent definition?
Code Block swift /* Small */ HStack { BigItemA BigItemB } /* Medium */ VStack { HStack { BigItemA BigItemB } HStack { SmallItemA SmallItemB SmallItemC } }
I want to configure this widget in this way:
Code Block /* Small */ BigItemA -> What? BigItemB -> What? /* Medium */ BigItemA -> What? BigItemB -> What? SmallItemA -> What? SmallItemB -> What? SmallItemC -> What?
So I add two parameters in my custom intent, and checked Supports multiple values and Fixed size.
For big items, everything is ok, I just set array size to be 2 at every widget size.
However, for the small items, when I make the array size to be 0 in small widget size, I get an alert: Array size must be a positive number.
How can I implement this requirement in intent definition?