title: How to use UIWindowScene.windows on iOS 15?
body: <p>Currently, with iOS 14.6, I can call a function in my app that displays a share sheet using the following code:</p>
  <pre><code>func share(link: URL) {
      let activityView = UIActivityViewController(activityItems: [link], applicationActivities: nil)
      UIApplication.shared.windows.first?.rootViewController?.present(activityView, animated: true, completion: nil)
  }
  </code></pre>
  <p>Since iOS 15 beta, Xcode tells me <strong>&quot;'windows' was deprecated in iOS 15.0: Use UIWindowScene.windows on a relevant window scene instead&quot;</strong>. How can I update this so that my share sheet will work properly in this new version? Thanks!</p>