title: EA showBluetoothAccessoryPicker not showing in SwiftUI
body: <p>I have created a small program that needs to connect to an external accessory. I have been able to do so successfully with UIKit and the EA framework.</p>
  <p>The problem I am having is that I have a SwiftUI based app that needs to use the External Accessory but when I call the showBluetoothAccessoryPicker function, the picker window does not show.</p>
  <p>What I have tried so far:</p>
  <p>I have read that you need to  have the app delegate with</p>
  <p><code>var window: UIWin</code></p>
  <p>setup correctly to see the picker window. So I created a class</p>
  <pre><code>class AppDelegate: UIApplicationDelegate
  {
      var window: UIWindow?
  }
  </code></pre>
  <p>I then associated the app delegate with my swiftui &quot;App&quot; struct like this:</p>
  <pre><code>@main
  struct POC: App {
      @UIApplicationDelegateAdaptor(AppDelegate.self) var appDelegate
      
      var body: some Scene {
          WindowGroup {
              TabSelectionView()
          }
      }
  }
  </code></pre>
  <p>Nevertheless, when I call <code>showBluetoothAccessoryPicker </code> the picker window does not show.</p>
  <p>I see the following in the output log:</p>
  <pre><code>2021-09-20 13:16:31.804796-0500 POC[2150:1514447] IAPDHasLaunched: kIAPAvailableNotification iapdAvailableState 0 -&gt; 0
  2021-09-20 13:16:31.805791-0500 POC[2150:1514447] IAP2DHasLaunched: kIAP2AvailableNotification iap2dAvailableState 0 -&gt; 0
  2021-09-20 13:16:31.807219-0500 POC[2150:1514447] -[EAAccessoryManager _initFromSingletonCreationMethod] isRunningOnMac
  </code></pre>
  <p>This log appears correct and matches the output from a working demo app that uses UIKit. It's just that the picker window does not show.</p>
  <p>Does anybody know what needs to be done to get the picker window to appear correctly for SwiftUI apps? Is there any <strong>SwiftUI</strong> examples of connecting to an External Accessory that anybody could point me towards?</p>
  <p>Thanks in advance for any help.</p>