Can widgets play in turn?

Our app provides users with three interesting graphic information. Can we play them in turns in widgets?

In addition, does widgets support video and GIF?
Answered by Documentation Engineer in 615016022
As Neil mentions in Meet WidgetKit, video and animated images aren't supported today.

I'm not sure what you mean by "play them in turns", but if you mean showing the images as an animated carousel, then that's not possible today.

These are great examples of feedback you should file with Feedback Assistant. Those submissions will go straight to the engineering team, and they're certainly eager to hear what people want from the API moving forward.
Accepted Answer
As Neil mentions in Meet WidgetKit, video and animated images aren't supported today.

I'm not sure what you mean by "play them in turns", but if you mean showing the images as an animated carousel, then that's not possible today.

These are great examples of feedback you should file with Feedback Assistant. Those submissions will go straight to the engineering team, and they're certainly eager to hear what people want from the API moving forward.

Yes you can show different anything on all widget sizes. Like this:

struct WidgetEntryView : View {

  var entry: Provider.Entry
  @Environment(\.widgetFamily) var family

  var body: some View {

    switch family {
    case .systemSmall:

      SmallWidget(entry: entry)
    default:
       
      MediumWidget(entry: entry)
    }
  }
}

struct SmallWidget: View {

  var entry: Provider.Entry

  var body: some View {
    ...
  }
}

struct MediumWidget: View {

  var entry: Provider.Entry

  var body: some View {
    ...
  }
}
Can widgets play in turn?
 
 
Q