Skip to content

Commit

Permalink
Add scene delegate documentation for Universal Links
Browse files Browse the repository at this point in the history
Summary: Just a follow up on previous documentation to Universal Links and add more context for apps that are opted into Scenes (iOS 13+)

Reviewed By: samodom

Differential Revision: D34896809

fbshipit-source-id: a5a1f137f9395ba9ae9ce4777b3cf6e18f89e0eb
  • Loading branch information
daniel-huri authored and facebook-github-bot committed Mar 15, 2022
1 parent 76fbbbd commit 868258d
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,22 @@ func application(
}
```

If your app is opted into Scenes, then you will also need to add the following code in your Scene Delegate implementation, in `scene(_:willConnectTo:options:)`:

```swift
func scene(
_ scene: UIScene,
willConnectTo session: UISceneSession,
options connectionOptions: UIScene.ConnectionOptions
) {
if let userActivity = connectionOptions.userActivities.first {
ApplicationDelegate.shared.application(UIApplication.shared, continue: userActivity)
}

// Rest of implementation...
}
```

## 13.0.0

### Notable Changes
Expand Down

0 comments on commit 868258d

Please sign in to comment.