Skip to content

Commit 44c433b

Browse files
authored
override in the swift code
The example doesn't works correctly without overriding the application function.
1 parent 7036182 commit 44c433b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/linking.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,15 +84,15 @@ If your app is using [Universal Links](https://developer.apple.com/ios/universal
8484
<TabItem value="swift">
8585
8686
```swift title="AppDelegate.swift"
87-
func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool {
87+
override func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool {
8888
return RCTLinkingManager.application(app, open: url, options: options)
8989
}
9090
```
9191

9292
If your app is using [Universal Links](https://developer.apple.com/ios/universal-links/), you'll need to add the following code as well:
9393

9494
```swift title="AppDelegate.swift"
95-
func application(
95+
override func application(
9696
_ application: UIApplication,
9797
continue userActivity: NSUserActivity,
9898
restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void) -> Bool {

0 commit comments

Comments
 (0)