UIScene.ConnectionOptions
A data object containing information about the reasons why UIKit created the scene.
Declaration
@MainActor class ConnectionOptionsOverview
UIKit creates scenes for many reasons. It might do so in response to a Handoff request or a request to open a URL. When there’s a specific reason for creating a scene, UIKit fills a UIScene.ConnectionOptions object with the associated data and passes it to your delegate at connection time. Use the information in this object to respond accordingly. For example, open the URLs that UIKit provides, and display their contents in the scene.
Don’t create UIScene.ConnectionOptions objects directly. UIKit creates UIScene.ConnectionOptions objects for you and passes them to the scene(_:willConnectTo:options:) method of your scene delegate.