Skip to content

Commit c1939e7

Browse files
authored
apply Swift linking example correction to all docs (facebook#5096)
1 parent e26377d commit c1939e7

7 files changed

Lines changed: 14 additions & 14 deletions

File tree

docs/linking.md

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

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

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

website/versioned_docs/version-0.81/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-
override func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool {
87+
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-
override func application(
95+
func application(
9696
_ application: UIApplication,
9797
continue userActivity: NSUserActivity,
9898
restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void) -> Bool {

website/versioned_docs/version-0.82/linking.md

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

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

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

website/versioned_docs/version-0.83/linking.md

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

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

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

website/versioned_docs/version-0.84/linking.md

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

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

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

website/versioned_docs/version-0.85/linking.md

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

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

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

website/versioned_docs/version-0.86/linking.md

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

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

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

0 commit comments

Comments
 (0)