Skip to content

Commit f5745a1

Browse files
committed
Update README to swift 3 syntax
1 parent 7afffa9 commit f5745a1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ try CallbackURLKit.perform(action: "actionName", urlScheme: "applicationName",
3535
```
3636
You can also use a new `Manager` or the shared instance
3737
```swift
38-
try Manager.sharedInstance.perform(action: "actionName", urlScheme: "application-name",
38+
try Manager.shared.perform(action: "actionName", urlScheme: "application-name",
3939
parameters: ["key1": "value1"])
4040
```
4141

@@ -99,10 +99,10 @@ Apple documentation: [Using URL Schemes to Communicate with Apps](https://develo
9999
#### Setup framework with URL scheme
100100
Then you must set the scheme to this framework manager
101101
```swift
102-
let manager = Manager.sharedInstance
102+
let manager = Manager.shared
103103
manager.callbackURLScheme = "my-application-scheme"
104104
// or get the first from Info.plist using utility method
105-
manager.callbackURLScheme = Manager.URLSchemes?.first
105+
manager.callbackURLScheme = Manager.urlSchemes?.first
106106
```
107107
#### Handle incoming URLs
108108
And finally to handle incoming URLs, your application delegate should implement the following methods below.

0 commit comments

Comments
 (0)