title: No options in dynamically provided intent for widget
body: <p>I'm trying to implement dynamically provided options for my iOS 15 widget. So far I successfully implemented static intent parameters, and now I wanted to extend it with dynamically provided ones.
  The dynamic parameter in my <em>.intentdefinition</em> file is called <code>HotspotList</code> and has type <code>String</code>.</p>
  <p>I have defined a struct where I have also saved a list of <code>availableHotspots</code>:</p>
  <pre><code>struct Hotspot: Hashable, Identifiable, Codable {
  
  ...
  
  static var availableHotspots = UserDefaults.standard.object(forKey: &quot;hotspots&quot;) as? [String] ?? [] 
  }
  </code></pre>
  <p>I have checked that this array is successfully saved with <code>print(Hotspot.availableHotspots)</code> somewhere in my main View.</p>
  <p>Now I want to use this array in my IntentHandler.swift file:</p>
  <pre><code>import Intents
  
  class IntentHandler: INExtension, WidgetConfigurationIntentHandling {
      
      override func handler(for intent: INIntent) -&gt; Any {
          
          return self
      }
      
      func provideHotspotListOptionsCollection(for intent: WidgetConfigurationIntent) async throws -&gt; INObjectCollection&lt;NSString&gt; {
          let hotspots: [NSString] = Hotspot.availableHotspots.map { element in
              let nsstring = element as NSString
              
              return nsstring
          }
          
          let collection = INObjectCollection(items: hotspots)
  
          return collection
      }
      
      func defaultHotspotList(for intent: WidgetConfigurationIntent) -&gt; String? {
                  
          return &quot;thisIsJustATest&quot;
          
      }
      
  }
  </code></pre>
  <p><a href="https://i.stack.imgur.com/mCtFq.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mCtFq.jpg" alt="enter image description here" /></a>
  <a href="https://i.stack.imgur.com/Jnlih.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Jnlih.png" alt="enter image description here" /></a></p>
  <p>I see that the intent is implemented correctly, because defaultHotspotList() returns the default parameter. But somehow provideHotspotListOptionsCollection() doesn't return the list of Strings. What am I doing wrong?</p>
  <p>Note: I also tried the non-async option of the function:</p>
  <pre><code>    func provideHotspotListOptionsCollection(for intent: WidgetConfigurationIntent, with completion: @escaping (INObjectCollection&lt;NSString&gt;?, Error?) -&gt; Void) {
          let hotspots: [NSString] = Hotspot.availableHotspots.map { element in
              let nsstring = element as NSString
  
              return nsstring
          }
  
          let collection = INObjectCollection(items: hotspots)
          print(collection)
          completion(collection, nil)
      }
  </code></pre>