WidgetKit viens encore de changer depuis la WWDC

les func snapshot, timeline ont été remplacées par getSanpshot, getTimeline
la fonction placeholder à été ajoutée et remplace la structure placeholderview

est ce quelqu’un sait faire l’adaptation
merci pour votre retour

Depuis j’ai eu la réponse pour ceux que cela intéresse

 struct Provider: TimelineProvider {
-  public typealias Entry = SimpleEntry
+  func placeholder(in context: Context) -> SimpleEntry {
+      SimpleEntry(date: Date(), emojiDetails: EmojiProvider.random())
+  }
 
-  public func snapshot(with context: Context, completion: @escaping (SimpleEntry) -> ()) {
+  public func getSnapshot(in context: Context, completion: @escaping (SimpleEntry) -> ()) {
     let entry = SimpleEntry(date: Date(), emojiDetails: EmojiProvider.random())
     completion(entry)
   }
 
-  public func timeline(with context: Context, completion: @escaping (Timeline<Entry>) -> ()) {
+  public func getTimeline(in context: Context, completion: @escaping (Timeline<Entry>) -> ()) {
     var entries: [SimpleEntry] = []
   public var body: some WidgetConfiguration {
     StaticConfiguration(
       kind: kind,
-      provider: Provider(),
-      placeholder: PlaceholderView()
-    ) { entry in
+      provider: Provider()) { entry in
       Emojibook_WidgetEntryView(entry: entry)
     }
     .configurationDisplayName("Random Emoji")

Merci michel pour ces infos! Je n’ai pas encore pris le temps d’étudier les widgets mais je pense le faire car je trouve le concept intéressant