title: what can I pass [SomeType] to "paramName: SomeType = []" swift?
body: <p>I'm pretty new to swift, trying to get authorization from user.</p>
  <p>to request multiple auth at once, I gathered multiple options as array, and trying to request.</p>
  <pre><code>let variableArray = [UNAuthorizationOptions.badge, UNAuthorizationOptions.alert]
  // error: Cannot convert value of type '[UNAuthorizationOptions]' to expected argument type 'UNAuthorizationOptions'
  try! await UNUserNotificationCenter.current().requestAuthorization(options: variableArray)
  
  
  //these works.        
  try! await UNUserNotificationCenter.current().requestAuthorization(options: [.badge, .alert])
  try! await UNUserNotificationCenter.current().requestAuthorization(options: .badge)
  </code></pre>
  <p>so I checked <code>requestAuthorization</code>, and found this:</p>
  <pre><code>open func requestAuthorization(options: UNAuthorizationOptions = []) async throws -&gt; Bool
  </code></pre>
  <p>I think it takes both <code>UNAuthorizationOptions</code> and <code>[UNAuthorizationOptions]</code> but compiler says</p>
  <blockquote>
  <p>&quot;hey, you are trying to pass <code>[UNAuthorizationOptions]</code> but I need
  <code>UNAuthorizationOptions</code>!&quot;</p>
  </blockquote>
  <p>how can I append <code>variableArray</code> above code to requestAuthorization?</p>