File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 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
864864func 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
You can’t perform that action at this time.
0 commit comments