Skip to content

Commit 53ec203

Browse files
committed
Tiny README updates
1 parent 912fe18 commit 53ec203

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
[![Twitter](https://img.shields.io/badge/twitter-@Pusher-blue.svg?style=flat)](http://twitter.com/Pusher)
99
[![GitHub license](https://img.shields.io/badge/license-MIT-lightgrey.svg)](https://raw.githubusercontent.com/pusher/pusher-websocket-swift/master/LICENSE.md)
1010

11-
Supports iOS, macOS (OS X), tvOS and watchOS!
11+
Supports iOS, macOS (OS X) and tvOS! (Hopefully watchOS soon!)
1212

1313

1414
## I just want to copy and paste some code to get me started
@@ -862,8 +862,8 @@ func application(_ application: UIApplication, didRegisterForRemoteNotifications
862862
#### Swift on macOS
863863
```swift
864864
func application(_ application: NSApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) {
865-
self.pusher.nativePusher().register(deviceToken: deviceToken)
866-
self.pusher.nativePusher().subscribe(interestName: "donuts")
865+
self.pusher.nativePusher.register(deviceToken: deviceToken)
866+
self.pusher.nativePusher.subscribe(interestName: "donuts")
867867
}
868868
```
869869

@@ -888,8 +888,8 @@ func application(_ application: UIApplication, didReceiveRemoteNotification user
888888

889889
#### Swift on macOS
890890
```swift
891-
func application(_ application: NSApplication, didReceiveRemoteNotification userInfo: [String : Any]) {
892-
print("Received remote notification: " + userInfo.debugDescription)
891+
func application(_ application: NSApplication, didReceiveRemoteNotification userInfo: [String: Any]) {
892+
print("Received remote notification: \(userInfo.debugDescription)" )
893893
}
894894
```
895895

0 commit comments

Comments
 (0)